I have a test that works fine under mth5 0.5.0 or 0.5.1, but fails under mth5 version 0.6.0 with this traceback:
.ss
======================================================================
ERROR: test02_load_fdsn_basic (__main__.TestMTH5LoadFDSN.test02_load_fdsn_basic)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/pyspedas/mth5/tests/test_load_fdsn.py", line 118, in test02_load_fdsn_basic
load_fdsn(network="4P", station="REU49", trange=[date_start, date_end])
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/pyspedas/mth5/load_fdsn.py", line 176, in load_fdsn
mth5_path = fdsn_object.make_mth5_from_fdsn_client(request_df, interact=False, path=mth5dir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/mth5/clients/fdsn.py", line 458, in make_mth5_from_fdsn_client
return self.make_mth5_from_inventory_and_streams(inv, streams, save_path=path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/mth5/clients/fdsn.py", line 516, in make_mth5_from_inventory_and_streams
m.from_experiment(experiment)
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/mth5/mth5.py", line 1119, in from_experiment
sg = self.add_survey(survey.id, survey_metadata=survey)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/mth5/mth5.py", line 1238, in add_survey
return self.surveys_group.add_survey(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/work/pyspedas/.venv/lib/python3.12/site-packages/mth5/groups/survey.py", line 153, in add_survey
raise ValueError("survey name is None, do not know what to name it")
ValueError: survey name is None, do not know what to name it
The exception is happening at this call to fdsn_object.make_mth5_from_fdsn_client:
fdsn_object = FDSN(mth5_version='0.2.0', client="IRIS")
try:
mth5_path = fdsn_object.make_mth5_from_fdsn_client(request_df, interact=False, path=mth5dir)
The values in request_df at the point of the failure are:
network: '4P'
station: 'REU49'
location: '--'
channel: 'MFZ,MFN,MFE,LFZ,LFN,LFE,VFZ,VFN,VFE,UFZ,UFN,UFE'
start: '2015-06-22T01:45:00'
end: '2015-06-22T02:20:00'
I get this console output:
2026-01-26T18:06:43.200788-0800 | INFO | mth5.mth5 | _initialize_file | line: 773 | Initialized MTH5 0.2.0 file mth5/4P_REU49.h5 in mode w
2026-01-26T18:06:43.207135-0800 | INFO | mth5.mth5 | close_mth5 | line: 896 | Flushing and closing mth5/4P_REU49.h5
26-Jan-26 18:06:43: Cannot initialize mth5 object:
survey name is None, do not know what to name it
26-Jan-26 18:06:43: Deleting mth5 temporary h5 file 4P_REU49.h5
Has something in the API changed between 0.5.1 and 0.6.0? Is there something I can do to fix this in my code?
I have a test that works fine under mth5 0.5.0 or 0.5.1, but fails under mth5 version 0.6.0 with this traceback:
The exception is happening at this call to fdsn_object.make_mth5_from_fdsn_client:
The values in request_df at the point of the failure are:
network: '4P'
station: 'REU49'
location: '--'
channel: 'MFZ,MFN,MFE,LFZ,LFN,LFE,VFZ,VFN,VFE,UFZ,UFN,UFE'
start: '2015-06-22T01:45:00'
end: '2015-06-22T02:20:00'
I get this console output:
Has something in the API changed between 0.5.1 and 0.6.0? Is there something I can do to fix this in my code?