DASDAE / dascore

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

Rename patch new #336

Closed d-chambers closed 8 months ago

d-chambers commented 8 months ago

Description

This PR renames patch.new to patch.update in order to be consistent with CoordinateManager.update, PatchAttributes.update and Coord.update. The documentation has also been updated accordingly.

However, to not break backwards compatibility, Patch.new still exists, and is a simple alias of Patch.update. It is just no longer advertised in the documentation.

I also added a few more examples to to_timedelta64 and to_datetime64 and tweaked one CSS parameter.

Checklist

I have (if applicable):

codecov[bot] commented 8 months ago

Codecov Report

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

Comparison is base (a11438c) 99.52% compared to head (51a411e) 99.52%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #336 +/- ## ======================================= Coverage 99.52% 99.52% ======================================= Files 91 91 Lines 7191 7192 +1 ======================================= + Hits 7157 7158 +1 Misses 34 34 ``` | [Flag](https://app.codecov.io/gh/DASDAE/dascore/pull/336/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/336/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=DASDAE) | `99.52% <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.