Skip to content

Commit

Permalink
Filter helpers moved to mt_metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kkappler committed Jan 6, 2024
1 parent 4f16e68 commit 0ab348b
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 121 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
python --version
conda install -c conda-forge pytest pytest-cov certifi">=2017.4.17" pandoc
pip install -r requirements-dev.txt
pip install git+https://github.com/kujaku11/mt_metadata.git@main
pip install git+https://github.com/kujaku11/mt_metadata.git@fix_aurora_issue_31
pip install git+https://github.com/kujaku11/mth5.git@patches
- name: Install Our Package
Expand Down
4 changes: 2 additions & 2 deletions aurora/sandbox/triage_metadata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from aurora.time_series.filters.filter_helpers import MT2SI_ELECTRIC_FIELD_FILTER
from aurora.time_series.filters.filter_helpers import MT2SI_MAGNETIC_FIELD_FILTER
from mt_metadata.timeseries.filters.helper_functions import MT2SI_ELECTRIC_FIELD_FILTER
from mt_metadata.timeseries.filters.helper_functions import MT2SI_MAGNETIC_FIELD_FILTER

from loguru import logger

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 @@ -29,7 +29,7 @@ def load_bf4_fap_for_parkfield_test_using_mt_metadata(frequencies):
"""
from aurora.general_helper_functions import DATA_PATH
from aurora.time_series.filters.filter_helpers import (
from mt_metadata.timeseries.filters.helper_functions import (
make_frequency_response_table_filter,
)

Expand Down
13 changes: 4 additions & 9 deletions aurora/test_utils/synthetic/station_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,9 @@
Run level: 'sample_rate', 1.0
"""
import numpy as np
import random

from mt_metadata.transfer_functions.processing.aurora import ChannelNomenclature
from aurora.test_utils.synthetic.paths import SyntheticTestPaths
from aurora.time_series.filters.filter_helpers import make_coefficient_filter

random.seed(0)
from mt_metadata.timeseries.filters.helper_functions import make_coefficient_filter
from mt_metadata.transfer_functions.processing.aurora import ChannelNomenclature

synthetic_test_paths = SyntheticTestPaths()
DATA_PATH = synthetic_test_paths.ascii_data_path
Expand All @@ -36,7 +31,7 @@ def make_filters(as_list=False):
Returns
-------
filters_list: list
filters that can be ussed to populate the filters lists of synthetic data
filters that can be used to populate the filters lists of synthetic data
"""
unity_coeff_filter = make_coefficient_filter(name="1", gain=1.0)
multipy_by_10_filter = make_coefficient_filter(gain=10.0, name="10")
Expand Down Expand Up @@ -79,7 +74,7 @@ def __init__(self, id, **kwargs):
if self.noise_scalars is None:
self.noise_scalars = {}
for channel in self.channels:
self.noise_scalars[channel] = 0.0 # np.random.rand(1)
self.noise_scalars[channel] = 0.0

@property
def channel_map(self):
Expand Down
108 changes: 0 additions & 108 deletions aurora/time_series/filters/filter_helpers.py

This file was deleted.

0 comments on commit 0ab348b

Please sign in to comment.