Skip to content

Commit

Permalink
Address mth5 issue 185
Browse files Browse the repository at this point in the history
- calibration should not coompensate for decimation AAF by default
  • Loading branch information
kkappler committed Jan 6, 2024
1 parent 0ab348b commit 61dab75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion aurora/pipelines/time_series_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def calibrate_stft_obj(stft_obj, run_obj, units="MT", channel_scale_factors=None
channel_response = run_obj.get_channel("hx").channel_response

Check warning on line 303 in aurora/pipelines/time_series_helpers.py

View check run for this annotation

Codecov / codecov/patch

aurora/pipelines/time_series_helpers.py#L303

Added line #L303 was not covered by tests

indices_to_flip = channel_response.get_indices_of_filters_to_remove(
include_decimation=True, include_delay=False
include_decimation=False, include_delay=False
)
indices_to_flip = [
i for i in indices_to_flip if channel.metadata.filter.applied[i]
Expand Down
2 changes: 1 addition & 1 deletion aurora/test_utils/parkfield/calibration_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def parkfield_sanity_check(
show_response_curves=False,
show_spectra=True,
figures_path=Path(""),
include_decimation=True,
include_decimation=False,
):
"""
loop over channels in fft obj and make calibrated spectral plots
Expand Down
2 changes: 1 addition & 1 deletion tests/parkfield/test_calibrate_parkfield.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def validate_bulk_spectra_have_correct_units(run_obj, run_ts_obj, show_spectra=F
figures_path=PARKFIELD_PATHS["aurora_results"],
show_response_curves=show_response_curves,
show_spectra=show_spectra,
include_decimation=True,
include_decimation=False,
)
return

Expand Down

0 comments on commit 61dab75

Please sign in to comment.