Skip to content

Commit eb2ff3f

Browse files
committed
Use output filename for points.1/points.2 if points_path not defined
1 parent 632dceb commit eb2ff3f

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

metplotpy/plots/line/line.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -790,12 +790,8 @@ def write_output_file(self) -> None:
790790
filename = self.config_obj.points_path + os.path.sep + filename
791791

792792
# save points
793-
points_path = self.config_obj.points_path
794-
os.makedirs(points_path, exist_ok=True)
795-
# self._save_points(all_points_1, filename + ".points1")
796-
self._save_points(all_points_1, os.path.join(points_path, filename + ".points1"))
797-
# self._save_points(all_points_2, filename + ".points2")
798-
self._save_points(all_points_2, os.path.join(points_path, filename + ".points2"))
793+
self._save_points(all_points_1, filename + ".points1")
794+
self._save_points(all_points_2, filename + ".points2")
799795

800796
self.logger.info(f"Finished writing to output file: {datetime.now()}")
801797

0 commit comments

Comments
 (0)