Skip to content

Commit

Permalink
Merge pull request #251 from xopt-org/cnsga_filename_mod
Browse files Browse the repository at this point in the history
Update cnsga.py
  • Loading branch information
roussel-ryan authored Oct 31, 2024
2 parents 8e54995 + db5dfab commit e43fe03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xopt/generators/ga/cnsga.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def write_population(self, filename=None):
if filename is None:
filename = f"{self.name}_population_{xopt.utils.isotime(include_microseconds=True)}.csv"
filename = os.path.join(self.output_path, filename)
filename = filename.replace(":", "_")

self.population.to_csv(filename, index_label="xopt_index")

Expand Down

0 comments on commit e43fe03

Please sign in to comment.