Skip to content

Commit 888adfa

Browse files
authored
Merge pull request #15583 from mcgratta/master
Python: Suppress output and the word Error
2 parents 3acd03b + ccf0dec commit 888adfa

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Utilities/Python/fdsplotlib.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1798,8 +1798,8 @@ def scatplot(saved_data, drange, **kwargs):
17981798
else:
17991799
Sigma_E_input = 0.0
18001800

1801-
if verbose:
1802-
print(f"[scatplot] Processing {Scatter_Plot_Title}")
1801+
#if verbose:
1802+
# print(f"[scatplot] Processing {Scatter_Plot_Title}")
18031803

18041804
# Match dataplot entries
18051805
match_idx = [i for i, q in enumerate(Save_Quantity)

Utilities/Python/scripts/make_smv_images.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@
4242
if os_name == "Linux":
4343
try:
4444
subprocess.run(['xvfb-run','-w','10','-s','-fp /usr/share/X11/fonts/misc -screen 0 1280x1024x24','-a',smokeview_path,
45-
'-bindir',bindir,'-runscript', case[i] ], check=True)
45+
'-bindir',bindir,'-runscript', case[i] ], check=True, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
4646
except subprocess.CalledProcessError as e:
4747
print(f"Smokeview failed with return code {e.returncode}")
4848
except FileNotFoundError:
4949
print(f"Smokeview executable not found: {smokeview_path}")
50-
5150
else:
5251
subprocess.run([smokeview_path,'-bindir',bindir,'-runscript',case[i]], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
52+
5353
os.chdir(original_dir)
5454

0 commit comments

Comments
 (0)