Open zibiwilczynski opened 3 months ago
I am experiencing the same issue.
I get the same ASDFWarning: Failed to flush and close the file due to: enter, and wish someone can solve the problem. Here is my code: import pyasdf event_id = "./ASDFDataSet/event_01.h5" ds = pyasdf.ASDFDataSet(event_id)
Through several tests, I found that the ASDFWarning has no substantial impact on my program. And the warning can be not displayed by using: import warnings warnings.filterwarnings("ignore", category = UserWarning, module = 'pyasdf')
Hi,
when running
ds.add_waveforms
, after the loop is done and the script terminates, I get the message:/miniconda3/envs/noisepy/lib/python3.10/site-packages/pyasdf/asdf_data_set.py:308: ASDFWarning: Failed to flush and close the file due to: __enter__
However, the waveforms are added correctly to the file so everything works fine.
Same for
ds.add_stationxml
Regards Zibi