Format schema
This commit is contained in:
@@ -9,13 +9,13 @@ PIPE_STATUS_CV = 'cv'
|
||||
|
||||
def get_pipe_schema(name: str) -> dict[str, dict[str, Any]]:
|
||||
return { 'id' : {'type': 'str' , 'optional': False , 'readonly': True },
|
||||
'node1' : {'type': "str" , 'optional': False , 'readonly': False},
|
||||
'node2' : {'type': "str" , 'optional': False , 'readonly': False},
|
||||
'length' : {'type': "float" , 'optional': False , 'readonly': False},
|
||||
'diameter' : {'type': "float" , 'optional': False , 'readonly': False},
|
||||
'roughness' : {'type': "float" , 'optional': False , 'readonly': False},
|
||||
'minor_loss' : {'type': "float" , 'optional': False , 'readonly': False},
|
||||
'status' : {'type': "str" , 'optional': False , 'readonly': False} }
|
||||
'node1' : {'type': 'str' , 'optional': False , 'readonly': False},
|
||||
'node2' : {'type': 'str' , 'optional': False , 'readonly': False},
|
||||
'length' : {'type': 'float' , 'optional': False , 'readonly': False},
|
||||
'diameter' : {'type': 'float' , 'optional': False , 'readonly': False},
|
||||
'roughness' : {'type': 'float' , 'optional': False , 'readonly': False},
|
||||
'minor_loss' : {'type': 'float' , 'optional': False , 'readonly': False},
|
||||
'status' : {'type': 'str' , 'optional': False , 'readonly': False} }
|
||||
|
||||
|
||||
def get_pipe(name: str, id: str) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user