Skip to content

Commit

Permalink
Bug fix in DatascopeDatabase constructor
Browse files Browse the repository at this point in the history
Two line change to fix an error in the constructor of this class.   Not sure how the previous version passed pytest.
  • Loading branch information
pavlis authored and wangyinz committed Jun 12, 2024
1 parent 239d150 commit 0fe13d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/mspasspy/preprocessing/css30/datascope.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self, dbname, pffile=None):
"""
self.dbname = dbname
if pffile == "master":
if pffile == None:
home = os.getenv("MSPASS_HOME")
if home == None:
raise MsPASSError(
Expand All @@ -94,7 +94,7 @@ def __init__(self, dbname, pffile=None):
"Fatal",
)
else:
path = os.path.join(home, "data/pf", "AntelopeDatabase.pf")
path = os.path.join(home, "data/pf", "DatascopeDatabase.pf")
else:
path = pffile
self.pf = AntelopePf(path)
Expand Down

0 comments on commit 0fe13d4

Please sign in to comment.