Fix reservoir type convert error

This commit is contained in:
WQY\qiong
2022-11-12 14:52:57 +08:00
parent fb9bef103a
commit 801f5bb878

View File

@@ -126,7 +126,7 @@ class InpReservoir:
self.id = str(tokens[0])
self.head = float(tokens[1])
self.pattern = float(tokens[2]) if num_without_desc >= 3 else None
self.pattern = str(tokens[2]) if num_without_desc >= 3 else None
self.desc = str(tokens[-1]) if has_desc else None