Skip to content

Commit

Permalink
Catch hex name change back for new stn name
Browse files Browse the repository at this point in the history
  • Loading branch information
Klankers committed Oct 7, 2024
1 parent dfffc5a commit aefeeb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctdcal/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ def hex_to_ctd(ssscc_list, prefix = None):
if prefix == "CE17007_":
print("If you can read this, then we're going into the prefix files and converting the hexes.")
modified_list = [
"CE17007_" + (entry[:-2] + "c" if entry.endswith("03") else entry[:-2])
"CE17007_" + (entry[:-2] + "c" if entry.endswith("02") else entry[:-2])
for entry in ssscc_list]
for ssscc, mod in zip(ssscc_list, modified_list):
if not Path(cfg.dirs["converted"] + ssscc + ".pkl").exists():
Expand Down

0 comments on commit aefeeb2

Please sign in to comment.