You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseMFCException(f"""Test {test}: Failed to run h5dump. You can find the run's output in {out_filepath}, and the case dictionary in {os.path.join(test.get_dirpath(), "case.py")}.""")
189
203
190
-
cons.print(f"[bold red]Failed test {test}.[/bold red]")
191
-
cons.print(f"{exc}")
204
+
if"nan,"inoutput:
205
+
raiseMFCException(f"""Test {test}: Post Process has detected a NaN. You can find the run's output in {out_filepath}, and the case dictionary in {os.path.join(test.get_dirpath(), "case.py")}.""")
raiseMFCException(f"""Test {test}: Post Process has detected an Infinity. You can find the run's output in {out_filepath}, and the case dictionary in {os.path.join(test.get_dirpath(), "case.py")}.""")
224
209
225
-
common.file_write(out_filepath, cmd.stdout)
226
-
227
-
ifcmd.returncode!=0:
228
-
cons.print(cmd.stdout)
229
-
raiseMFCException(f"""Test {test}: Failed to execute MFC. You can find the run's output in {out_filepath}, and the case dictionary in {os.path.join(test.get_dirpath(), "case.py")}.""")
cons.print(f"[bold red]Failed test {test}.[/bold red]")
248
219
cons.print(f"{exc}")
249
-
250
-
defcheck_data(data):
251
-
ifisinstance(data, np.ndarray):
252
-
forsubdataindata:
253
-
check_data(subdata)
254
-
else:
255
-
ifnp.isnan(data):
256
-
raiseMFCException(f"""Test {test}: Post Process has detected a NaN. You can find the run's output in {out_filepath}, and the case dictionary in {os.path.join(test.get_dirpath(), "case.py")}.""")
257
-
ifnp.isinf(data):
258
-
raiseMFCException(f"""Test {test}: Post Process has detected an Infinity. You can find the run's output in {out_filepath}, and the case dictionary in {os.path.join(test.get_dirpath(), "case.py")}.""")
0 commit comments