UCBerkeleySETI/turbo_seti

data_handler.py and find_event_pipeline.py can mangle the .h5 and .dat file names

texadactyl opened this issue · 0 comments

Similar to UCBerkeleySETI/blimpy#251

In function data_handler.py __make_h5_file, it is possible to mangle the output file name if the input file path has an embedded "fil". In essence, the embedded "fil" will be inadvertently changed to "h5". E.g. "abc.filter.def.fil" --> "abc.h5ter.def.h5" (should be "abc.filter.def.h5"). This was caused by misuse of the string replace function.

Similarly, function find_event_pipeline.py find_event_pipeline would have experienced a "file not found" error when it tried to retrieve the header of an .h5 file whose path was constructed from that of the .dat file.