Skip to content

Commit

Permalink
Suppress tipers warning if not present in bbb
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Jan 12, 2024
1 parent a232747 commit 40eaf31
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pyscripts/hdf5.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ def hdf5_save(file, varlist=['bbb.ngs', 'bbb.ng',
'bbb.up', 'bbb.ups',
'bbb.tg', 'bbb.tgs',
'bbb.ev', 'bbb.prad',
'bbb.pradhyd', 'bbb.tipers','com.nx',
'bbb.pradhyd', 'com.nx',
'com.ny', 'com.rm', 'com.zm'],
addvarlist=[]):
"""
Expand All @@ -103,6 +103,12 @@ def hdf5_save(file, varlist=['bbb.ngs', 'bbb.ng',
to the default list in varlist.
"""
try:
bbb.tipers
varlist.append('bbb.tipers')
except:
pass

grps = {}
vars = {}
try:
Expand Down

0 comments on commit 40eaf31

Please sign in to comment.