mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
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:
1 parent
0a0c00d877
commit
75f3c07cd9
5 files changed
+45
-17
No files matched your search
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user