Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue 36 #312

Merged
merged 58 commits into from
Jan 11, 2024
Merged

Fix issue 36 #312

merged 58 commits into from
Jan 11, 2024

Conversation

kkappler
Copy link
Collaborator

No description provided.

kkappler and others added 30 commits November 25, 2023 07:32
- reorder arguments to make_stft_objects so that units is an optional kwarg
- replace a use of config with tfk.config
- remove duplicate definition of run_obj
- instead of using a flat dict with metadata, use nested dict
- first layer denotes the channel type ("electric" or "magnetic")
- also modified test_compare so that it is easier to export a csv
- upsample_factor removed as arg, deduced from run.sample_rate
- if a station that is not in the run summary is requested,
the output to screen did not make it clear that this was the
problem.
- added an explicit check for an empty df after
restrict_to_station_list in kernel_dataset.
- if df is empty, log an informative message and raise ValueError
Copy link

codecov bot commented Dec 29, 2023

Codecov Report

Attention: 77 lines in your changes are missing coverage. Please review.

Comparison is base (3f09400) 77.29% compared to head (d8bc61d) 77.69%.

Files Patch % Lines
...ora/transfer_function/weights/coherence_weights.py 0.00% 41 Missing ⚠️
aurora/sandbox/mth5_helpers.py 0.00% 11 Missing ⚠️
aurora/test_utils/synthetic/make_mth5_from_asc.py 80.95% 8 Missing ⚠️
aurora/transfer_function/kernel_dataset.py 57.14% 3 Missing ⚠️
aurora/pipelines/time_series_helpers.py 80.00% 2 Missing ⚠️
aurora/pipelines/transfer_function_kernel.py 60.00% 2 Missing ⚠️
aurora/time_series/frequency_band_helpers.py 89.47% 2 Missing ⚠️
aurora/transfer_function/regression/m_estimator.py 50.00% 2 Missing ⚠️
tests/transfer_function/test_kernel_dataset.py 93.54% 2 Missing ⚠️
aurora/pipelines/transfer_function_helpers.py 66.66% 1 Missing ⚠️
... and 3 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #312      +/-   ##
==========================================
+ Coverage   77.29%   77.69%   +0.39%     
==========================================
  Files          88       89       +1     
  Lines        5572     5626      +54     
==========================================
+ Hits         4307     4371      +64     
+ Misses       1265     1255      -10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

- also remove some unused imports, add a few notes
- remove unused i_dec_level argument from get_band_for_tf_estimate
- switch order of commented debugging statements for easier use
- remove nT <--> T handling from inventory_review in sandbox
- replace with triage_mt_units_magnetic_field
- make triage_units a list, not a string, that can handle electrics an magnetics
- make MT2SI_MAGNETIC_FIELD_FILTER
- calibration should not coompensate for decimation AAF by default
- decorate with @path_or_mth5_object, tidy up doc strings
@kkappler kkappler changed the title Fix issue 31 Fix issue 36 Jan 8, 2024
- delete add_filters method from aurora, this is now in mth5
- minor tidying, alphabetize imports, etc.
- also rename some functions more appropriately
- tested that jackknife jj84 coh-sorting works on synthetic
- the integer decimation level was not needed
- this propagates to some other functions, that now take dec_level_cfg
  instead of config
- only logic change was tfk validator now drops ref channels if no RR station
- add a test covering typecheck on time_period
- fix bug (isinstance args were permuted in fourier_coefficients.py)
- removed an unneeded argument station_id from make_stft_objects
- also, removed some Musgraves triage logic and put in sandbox/triage_metadata.py
- this makes these lines testable in a much less complex way
- added a test for the new function (albeit in sandbox)
- this method is still slow, but runs.
- next step is to vectorize it
- was using a for loop, in variable partial_coh
- in this commit is shown an alternative way that uses linear algebra
  approach
- should be faster as it is vectorized.
- next commit will remove the old way
- in prep for doi relase,
- updated branches of mth5,mth_metadata to mains
- pretty up some logging messages
@kkappler kkappler merged commit 618f267 into main Jan 11, 2024
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants