Skip to content

Commit

Permalink
Do not sort ALL_TS when printing it out to ts.dd (#272)
Browse files Browse the repository at this point in the history
Fixes #270
  • Loading branch information
olejandro authored Jan 5, 2025
1 parent 232f0e4 commit 487a20b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion xl2times/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ def convert_parameter(tablename: str, df: DataFrame):
else:
fout.write(f"PARAMETER\n{tablename} ' '/\n")
lines = convert_parameter(tablename, df)
fout.writelines(sorted(lines))
# Sort lines to ensure consistent output, except for ALL_TS
if tablename != "ALL_TS":
lines = sorted(lines)
fout.writelines(lines)
fout.write("\n/;\n")
pass

Expand Down

0 comments on commit 487a20b

Please sign in to comment.