DASDAE / dascore

A python library for distributed fiber optic sensing
Other
72 stars 16 forks source link

Examples to support data registry entries #348

Closed d-chambers closed 6 months ago

d-chambers commented 6 months ago

Description

This PR allows the get_example_spool and get_example_patch functions to support using the name of a data entry directly. E.g.,

import dascore as dc

patch = dc.get_example_patch("DASDMSShot00_20230328155653619.das") 

This PR also:

Checklist

I have (if applicable):

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.53%. Comparing base (8968e7f) to head (6be3fc0).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #348 +/- ## ======================================= Coverage 99.53% 99.53% ======================================= Files 91 91 Lines 7245 7250 +5 ======================================= + Hits 7211 7216 +5 Misses 34 34 ``` | [Flag](https://app.codecov.io/gh/DASDAE/dascore/pull/348/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DASDAE) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/DASDAE/dascore/pull/348/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DASDAE) | `99.53% <100.00%> (+<0.01%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DASDAE#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.