Skip to content

Commit

Permalink
minor tweaks (#452)
Browse files Browse the repository at this point in the history
  • Loading branch information
d-chambers authored Nov 1, 2024
1 parent b2551d2 commit f2bbd4c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
run: uv tool install pre-commit

- name: run all precommits
run: uv run pre-commit run --all
run: uv tool run pre-commit run --all
2 changes: 1 addition & 1 deletion dascore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from dascore.io.core import get_format, read, scan, scan_to_df, write
from dascore.units import get_quantity, get_unit
from dascore.utils.patch import patch_function
from dascore.utils.time import to_datetime64, to_timedelta64
from dascore.utils.time import to_datetime64, to_timedelta64, to_float
from dascore.version import __last_version__, __version__

# flag for disabling progress bar when debugging
Expand Down
2 changes: 1 addition & 1 deletion dascore/examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def example_event_2():
delta_time = patch.coords.get_array("time") - patch.coords.min("time")
out = (
patch.update_coords(time=delta_time / np.timedelta64(1, "s"))
.set_units("1/s", distance="m", time="s")
.set_units("strain/s", distance="m", time="s")
.taper(time=0.05)
.pass_filter(time=(..., 300))
)
Expand Down
1 change: 1 addition & 0 deletions dascore/utils/downloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
fetcher.load_registry(REGISTRY_PATH)


@cache
def get_registry_df() -> pd.DataFrame:
"""Returns a dataframe of all files in the data registry."""
names = (
Expand Down

0 comments on commit f2bbd4c

Please sign in to comment.