Upper key word
This commit is contained in:
@@ -139,7 +139,7 @@ class InpPipe:
|
||||
self.roughness = float(tokens[5])
|
||||
self.minor_loss = float(tokens[6])
|
||||
# status is must-have, here fix input
|
||||
self.status = str(tokens[7]) if num_without_desc >= 8 else PIPE_STATUS_OPEN
|
||||
self.status = str(tokens[7].upper()) if num_without_desc >= 8 else PIPE_STATUS_OPEN
|
||||
self.desc = str(tokens[-1]) if has_desc else None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user