Skip to content
This repository has been archived by the owner on Oct 19, 2024. It is now read-only.

Commit

Permalink
resolved merge errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafia Omer committed Nov 30, 2023
2 parents ae2a708 + e398992 commit b11cc87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions projects/sandbox/datagen/datagen/utils/injection.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,12 @@ def generate_gw_bns(
# cut off the first sec of the waveform where the wraparound occurs
padding_length = padding * sample_rate
signals[i] = polarizations[:, int(padding_length) :]

# every 1000th waveform
if not i % 1000:
# note the logging.debug so that it's only called if verbose=True.
logging.debug(f"{i + 1} polarizations generated")
# note the following is only called if verbose=True
logging.debug(f"{i + 1} polarizations generated")

logging.info("Finished generating polarizations")
return signals

Expand Down
1 change: 1 addition & 0 deletions projects/sandbox/train/train/augmentor.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def sample_responses(self, N: int, kernel_size: int, psds: torch.Tensor):
responses, _ = self.rescaler(responses, psds**0.5, target_snrs)

kernels = sample_kernels(
responses,
kernel_size=kernel_size,
max_center_offset=self.trigger_offset,
coincident=True,
Expand Down

0 comments on commit b11cc87

Please sign in to comment.