mirror of
https://github.com/ANL-CEEESA/MIPLearn.git
synced 2025-12-06 01:18:52 -06:00
io: Simplify more extensions
This commit is contained in:
@@ -86,7 +86,8 @@ def read_pkl_gz(filename: str) -> Any:
|
||||
|
||||
def _to_h5_filename(data_filename: str) -> str:
|
||||
output = f"{data_filename}.h5"
|
||||
output = output.replace(".pkl.gz.h5", ".h5")
|
||||
output = output.replace(".gz.h5", ".h5")
|
||||
output = output.replace(".json.h5", ".h5")
|
||||
output = output.replace(".pkl.h5", ".h5")
|
||||
output = output.replace(".jld2.h5", ".h5")
|
||||
return output
|
||||
|
||||
Reference in New Issue
Block a user