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

add (failing) test that fc_metadata updates as expected #173

Merged
merged 22 commits into from
Dec 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
4eb3dc9
add (failing) test that fc_metadata updates as expected
kkappler Nov 23, 2023
43960c0
update channel_response_filter, and units (mt_metadata 173)
kkappler Dec 15, 2023
2f7b2dd
update channel_response(_filter)
kkappler Dec 15, 2023
a0fff4a
update channel_response(_filter)
kkappler Dec 15, 2023
d829e60
channel_response(_filter), minor tweaks
kkappler Dec 15, 2023
354ee86
Fix issue #169
kkappler Dec 16, 2023
cb65736
Merge branch 'master' into aurora_issue_310
kujaku11 Dec 18, 2023
151db04
working out the bug of read_metadata on get_
kujaku11 Dec 18, 2023
c05d933
updated to set dataset options and read_metadata on get_
kujaku11 Dec 18, 2023
73bbf9d
workimg on if file is in read mode
kujaku11 Dec 18, 2023
51ce34e
try/except around write_metadata in case read-only
kkappler Dec 18, 2023
f64ed07
updating test for in read mode
kujaku11 Dec 18, 2023
b566ea6
Merge branch 'aurora_issue_310' of https://github.com/kujaku11/mth5 i…
kujaku11 Dec 18, 2023
ac86b85
Try adding a leap second example to test_make_mth5
kkappler Dec 19, 2023
b1e5acc
Allow channel number to be an np.int32
kkappler Dec 19, 2023
7d79b46
Update test_mth5.py
kujaku11 Dec 19, 2023
074c284
Update test_mth5.py
kujaku11 Dec 21, 2023
5333b32
changed update_##_metadata to update_metadata
kujaku11 Dec 21, 2023
abfdbfd
fixed tests to use 'update_metadata'
kujaku11 Dec 21, 2023
787b752
changed logic for checking if file is in read-only mode
kujaku11 Dec 21, 2023
fd19cee
Merge branch 'aurora_issue_310' into patches
kkappler Dec 22, 2023
c91e83d
Merge pull request #178 from kujaku11/patches
kujaku11 Dec 22, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/examples/notebooks/channel_ts_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
8 changes: 4 additions & 4 deletions docs/examples/notebooks/example_01.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@
" run_object.run_metadata.id, run_metadata=run_object.run_metadata\n",
" )\n",
" run_group.from_runts(run_object)\n",
" run_group.update_run_metadata()\n",
" run_group.update_metadata()\n",
"\n",
" # update station metadata to ensure consistency\n",
" station_group.update_station_metadata()\n",
" survey_group.update_survey_metadata()\n",
" station_group.update_metadata()\n",
" survey_group.update_metadata()\n",
"\n",
" print(m)"
]
Expand Down Expand Up @@ -268,7 +268,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
152 changes: 70 additions & 82 deletions docs/examples/notebooks/filters_example.ipynb

Large diffs are not rendered by default.

364 changes: 202 additions & 162 deletions docs/examples/notebooks/make_mth5_driver_v0.1.0.ipynb

Large diffs are not rendered by default.

288 changes: 163 additions & 125 deletions docs/examples/notebooks/make_mth5_driver_v0.2.0.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/examples/notebooks/make_mth5_from_geomag.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
9 changes: 3 additions & 6 deletions docs/examples/notebooks/make_mth5_from_lemi.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -719,11 +719,8 @@
],
"source": [
"%%time\n",
"station_group.validate_station_metadata()\n",
"station_group.write_metadata()\n",
"\n",
"survey_group.update_survey_metadata()\n",
"survey_group.write_metadata()"
"station_group.update_metadata()\n",
"survey_group.update_metadata()\n"
]
},
{
Expand Down Expand Up @@ -1882,7 +1879,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
9 changes: 3 additions & 6 deletions docs/examples/notebooks/make_mth5_from_nims.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -354,11 +354,8 @@
],
"source": [
"%%time\n",
"station_group.validate_station_metadata()\n",
"station_group.write_metadata()\n",
"\n",
"survey_group.update_survey_metadata()\n",
"survey_group.write_metadata()"
"station_group.update_metadata()\n",
"survey_group.update_metadata()"
]
},
{
Expand Down Expand Up @@ -967,7 +964,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
16 changes: 5 additions & 11 deletions docs/examples/notebooks/make_mth5_from_phoenix.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,7 @@
" ch_150.channel_metadata.update(ch_metadata)\n",
" ch_dataset = continuous_run.from_channel_ts(ch_150)\n",
" \n",
"continuous_run.validate_run_metadata()\n",
"continuous_run.write_metadata()"
"continuous_run.update_metadata()"
]
},
{
Expand Down Expand Up @@ -274,8 +273,7 @@
" run_group.from_channel_ts(seg_ts)\n",
" \n",
" # update run metadata\n",
" run_group.validate_run_metadata()\n",
" run_group.write_metadata()\n",
" run_group.update_metadata()\n",
" "
]
},
Expand All @@ -296,12 +294,8 @@
"metadata": {},
"outputs": [],
"source": [
"\n",
"station_group.validate_station_metadata()\n",
"station_group.write_metadata()\n",
"\n",
"survey_group.update_survey_metadata()\n",
"survey_group.write_metadata()"
"station_group.update_metadata()\n",
"survey_group.update_metadata()"
]
},
{
Expand Down Expand Up @@ -371,7 +365,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.12"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
9 changes: 3 additions & 6 deletions docs/examples/notebooks/make_mth5_from_phoenix_real.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,8 @@
],
"source": [
"%%time\n",
"station_group.validate_station_metadata()\n",
"station_group.write_metadata()\n",
"\n",
"survey_group.update_survey_metadata()\n",
"survey_group.write_metadata()"
"station_group.update_metadata()\n",
"survey_group.update_metadata()"
]
},
{
Expand Down Expand Up @@ -616,7 +613,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
11 changes: 4 additions & 7 deletions docs/examples/notebooks/make_mth5_from_phoenix_sage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
" # add channel to the run group\n",
" ch_dataset = run_group.from_channel_ts(ch_ts)\n",
" \n",
" run_group.update_run_metadata()\n",
" run_group.update_metadata()\n",
" "
]
},
Expand All @@ -193,11 +193,8 @@
"outputs": [],
"source": [
"%%time\n",
"station_group.update_station_metadata()\n",
"station_group.write_metadata()\n",
"\n",
"survey_group.update_survey_metadata()\n",
"survey_group.write_metadata()"
"station_group.update_metadata()\n",
"survey_group.update_metadata()"
]
},
{
Expand Down Expand Up @@ -238,7 +235,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
9 changes: 3 additions & 6 deletions docs/examples/notebooks/make_mth5_from_z3d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -344,11 +344,8 @@
],
"source": [
"%%time\n",
"station_group.validate_station_metadata()\n",
"station_group.write_metadata()\n",
"\n",
"survey_group.update_survey_metadata()\n",
"survey_group.write_metadata()"
"station_group.update_metadata()\n",
"survey_group.update_metadata()"
]
},
{
Expand Down Expand Up @@ -855,7 +852,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion docs/examples/notebooks/mth5_in_parallel.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -958,9 +958,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.13"
"version": "3.9.18"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
Loading