Skip to content

Commit 07b5e14

Browse files
committed
Avoid mixing input value with comments
When the exclamation mark is connected to a float value without space in between them, the resulting `hydraulics.in`` will trigger an I/O syntax error during read.
1 parent 3417692 commit 07b5e14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

schimpy/schism_structure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def write(self, fname="hydraulics.in"):
382382
struct.properties["culvert_n_duplicates"]
383383
)
384384
f.write(buf)
385-
buf = "%f %f! elevation and width for culverts\n" % (
385+
buf = "%f %f ! elevation and width for culverts\n" % (
386386
struct.properties["culvert_elevation"],
387387
struct.properties["culvert_radius"],
388388
)

0 commit comments

Comments
 (0)