Skip to content

Commit

Permalink
removed sources (brackets in a function and wrong variable name) for …
Browse files Browse the repository at this point in the history
…failed tests
  • Loading branch information
mrosskopf committed Sep 6, 2024
1 parent 2896f7f commit d75cb9a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 17 deletions.
28 changes: 13 additions & 15 deletions dug_seis/db/sqlite_db_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,22 +196,20 @@ def ci(x: typing.Dict) -> typing.Optional[obspy.core.event.CreationInfo]:
return None
return obspy.core.event.CreationInfo(
agency_id=x["creationInfo_agencyID"],
agency_uri=(
obspy.core.event.ResourceIdentifier(x["creationInfo_agencyURI"])
if x["creationInfo_agencyURI"]
else None,
),
agency_uri=obspy.core.event.ResourceIdentifier(
x["creationInfo_agencyURI"]
)
if x["creationInfo_agencyURI"]
else None,
author=x["creationInfo_author"],
author_uri=(
obspy.core.event.ResourceIdentifier(x["creationInfo_authorURI"])
if x["creationInfo_authorURI"]
else None,
),
creation_time=(
obspy.UTCDateTime(x["creationInfo_creationTime"])
if x["creationInfo_creationTime"]
else None,
),
author_uri=obspy.core.event.ResourceIdentifier(
x["creationInfo_authorURI"]
)
if x["creationInfo_authorURI"]
else None,
creation_time=obspy.UTCDateTime(x["creationInfo_creationTime"])
if x["creationInfo_creationTime"]
else None,
version=x["creationInfo_version"],
)

Expand Down
3 changes: 1 addition & 2 deletions dug_seis/tests/test_dug_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def test_dug_picker_sta_lta():
picker_opts={
"st_window": 70,
"lt_window": 700,
"threshold_on": 3.0,
"threshold_off": 0.5,
"thresholds": [3.0]*len(st),
},
)

Expand Down

0 comments on commit d75cb9a

Please sign in to comment.