We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83cfef7 commit 79057c0Copy full SHA for 79057c0
elphick/geomet/flowsheet/operation.py
@@ -74,7 +74,10 @@ def get_input_mass(self) -> pd.DataFrame:
74
inputs = [i for i in self.inputs if i is not None]
75
76
if not inputs:
77
- return self._create_zero_mass()
+ try:
78
+ return self._create_zero_mass()
79
+ except:
80
+ return pd.DataFrame()
81
elif len(inputs) == 1:
82
return inputs[0].mass_data
83
else:
@@ -84,7 +87,10 @@ def get_output_mass(self) -> pd.DataFrame:
84
87
outputs = [o for o in self.outputs if o is not None]
85
88
86
89
if not outputs:
90
91
92
93
94
elif len(outputs) == 1:
95
return outputs[0].mass_data
96
0 commit comments