Solver: export the relative time for solver files, in the case of a study in date mode, which is the date mentionned in the data minus the study start date

This commit is contained in:
Dylan Jeannin committed 2026-09-07 15:35:27 +02:00
1 parent 0a0c00d877
commit 75f3c07cd9
5 files changed
+45 -17

No files matched your search

+6 -2
View File
@@ -594,7 +594,9 @@ class AdisTSwc(AdisTS):
f.write(f"*---------++++++++++\n")
for LC_data in LC.data:
tmp = timestamp_to_old_pamhyr_date_adists(int(LC_data[0]))
tmp = timestamp_to_old_pamhyr_date_adists(
int(self.export_time(study, LC_data[0]))
)
f.write(" ".join((f"{tmp}",
f"{LC_data[1]}\n")))
f.write(f"*\n")
@@ -626,7 +628,9 @@ class AdisTSwc(AdisTS):
f.write(f"*---------++++++++++\n")
for BC_data in BC.data:
tmp = timestamp_to_old_pamhyr_date_adists(int(BC_data[0]))
tmp = timestamp_to_old_pamhyr_date_adists(
int(self.export_time(study, BC_data[0]))
)
f.write(" ".join((f"{tmp}",
f"{BC_data[1]}\n")))
f.write(f"*\n")