Skip to content

Commit 4169cee

Browse files
committed
Fix single path file output when num_paths=1
1 parent 92b803c commit 4169cee

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

cmdstanpy/stanfit/runset.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,5 @@ def populate_pathfinder_single_path_files(self) -> None:
350350
for id in range(1, num_paths + 1)
351351
]
352352
else: # num_paths == 1
353-
self._single_path_csv_files = [
354-
self.gen_file_name(".csv", extra="path")
355-
]
356-
self._single_path_json_files = [
357-
self.gen_file_name(".csv", extra="json")
358-
]
353+
self._single_path_csv_files = [self.gen_file_name(".csv")]
354+
self._single_path_json_files = [self.gen_file_name(".json")]

0 commit comments

Comments
 (0)