Skip to content

Commit

Permalink
Merge branch 'fix_issue_31' of kkappler-github:simpeg/aurora into fix…
Browse files Browse the repository at this point in the history
…_issue_31
  • Loading branch information
kkappler committed Dec 8, 2023
2 parents c4ce4b9 + cb89dca commit 204ff99
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ 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
pip install git+https://github.com/kujaku11/mth5.git
pip install git+https://github.com/kujaku11/mt_metadata.git@fix_issue_173
pip install git+https://github.com/kujaku11/mth5.git@fix_mt_metadata_issue_173
- name: Install Our Package
run: |
Expand Down
2 changes: 1 addition & 1 deletion aurora/sandbox/triage_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def triage_mt_units_electric_field(experiment):
for channel in channels:
if channel.component[0] == "e":
channel.filter.name.insert(0, filter_name)
channel.filter.applied.insert(0, False)
channel.filter.applied.insert(0, True)
return experiment


Expand Down
8 changes: 6 additions & 2 deletions tests/synthetic/test_compare_aurora_vs_archived_emtf.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ def aurora_vs_emtf(

aux_data = read_z_file(auxilliary_z_file)
aurora_rho_phi = merge_tf_collection_to_match_z_file(aux_data, tf_collection)

data_dict = {}
data_dict["period"] = aux_data.periods
data_dict["emtf_rho_xy"] = aux_data.rxy
data_dict["emtf_phi_xy"] = aux_data.pxy
for xy_or_yx in ["xy", "yx"]:
aurora_rho = aurora_rho_phi["rho"][xy_or_yx]
aurora_phi = aurora_rho_phi["phi"][xy_or_yx]
Expand All @@ -95,7 +98,8 @@ def aurora_vs_emtf(
aurora_rho, aurora_phi, verbose=True
)
rho_rms_emtf, phi_rms_emtf = compute_rms(aux_rho, aux_phi)

data_dict["aurora_rho_xy"] = aurora_rho
data_dict["aurora_phi_xy"] = aurora_phi
if expected_rms_misfit is not None:
assert_rms_misfit_ok(
expected_rms_misfit, xy_or_yx, rho_rms_aurora, phi_rms_aurora
Expand Down

0 comments on commit 204ff99

Please sign in to comment.