Summary:
Reported by @andrewjradcliffe
Passing an output file argument with multiple .s in it and requesting save_single_paths leads to output files with the same name, so they all end up clobbering the output files on disk.
Reproducible Steps:
./bernoulli pathfinder save_single_paths=1 output file=foo.bar.baz data file=bernoulli.data.json
Current Output:
This produces files foo.bar.csv foo_path_1.bar foo_path_2.bar foo_path_3.bar foo_path_4.bar
The files foo_path_1.bar... all have a incoherent mix of json/csv in them.
Additional Information:
I believe this is because the make_filenames function doesn't replace an extension if it is already provided. This works if there is 1 . in the name since we artificially strip it out for pathfinder, but if there is more than one we get this problem.
Current Version:
v2.33.1
Summary:
Reported by @andrewjradcliffe
Passing an output file argument with multiple
.s in it and requestingsave_single_pathsleads to output files with the same name, so they all end up clobbering the output files on disk.Reproducible Steps:
Current Output:
This produces files
foo.bar.csv foo_path_1.bar foo_path_2.bar foo_path_3.bar foo_path_4.barThe files
foo_path_1.bar... all have a incoherent mix of json/csv in them.Additional Information:
I believe this is because the
make_filenamesfunction doesn't replace an extension if it is already provided. This works if there is 1.in the name since we artificially strip it out for pathfinder, but if there is more than one we get this problem.Current Version:
v2.33.1