Closed arthurvd closed 1 year ago
@rhutten, do you know whether it is "safe" to skip empty properties for all files? The MDU is the only INI file I can think of that is OK to write empty properties. Please verify for which files this change can or cannot be implemented.
@arthurvd, I will change it to a bug, because we should not be serializing models to file that will raise error when deserialized again. Hope you agree with this :)
@arthurvd and @rhutten, I have made the assumption that empty properties should be written for the MDU file and they should be skipped for all other files. Please someone verify this. Putting this issue for review.
In the .ext file, locations for Lateral and Boundary objects can be specified in multiple ways, so all these fields are optional. When an MDU+ext file is saved to disk, also all optional fields are written, which is not an error, but it is unnecessarily confusing, nonetheless. Example .ext input:
Currently saved output:
Note that the same issue arises for Structures (locations) and DamBreaks (waterlevel locations)