Skip to content

Commit

Permalink
rename package
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Aug 2, 2024
1 parent 626ebbb commit 6433b49
Show file tree
Hide file tree
Showing 25 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
# 0 means don't use pytest-xdist
pytest_numcpus: "4"
# pytest-cov looks at this folder
pytest_cov_dir: "ocf_dataset_alpha"
pytest_cov_dir: "ocf_data_sampler"
# extra things to install
#sudo_apt_install: "libgeos++-dev libproj-dev proj-data proj-bin"
# brew_install: "proj geos librttopo"
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,22 @@
from torch.utils.data import Dataset


from ocf_dataset_alpha.load.gsp import open_gsp
from ocf_dataset_alpha.load.nwp import open_nwp
from ocf_dataset_alpha.load.satellite import open_sat_data
from ocf_dataset_alpha.select.find_contiguous_t0_time_periods import (
from ocf_data_sampler.load.gsp import open_gsp
from ocf_data_sampler.load.nwp import open_nwp
from ocf_data_sampler.load.satellite import open_sat_data
from ocf_data_sampler.select.find_contiguous_t0_time_periods import (
find_contiguous_t0_time_periods, find_contiguous_t0_periods_nwp,
intersection_of_multiple_dataframes_of_periods,
)

from ocf_dataset_alpha.select.fill_time_periods import fill_time_periods
from ocf_data_sampler.select.fill_time_periods import fill_time_periods

from ocf_dataset_alpha.select.select_time_slice import select_time_slice, select_time_slice_nwp
from ocf_dataset_alpha.select.dropout import draw_dropout_time, apply_dropout_time
from ocf_data_sampler.select.select_time_slice import select_time_slice, select_time_slice_nwp
from ocf_data_sampler.select.dropout import draw_dropout_time, apply_dropout_time

from ocf_dataset_alpha.select.select_spatial_slice import select_spatial_slice_pixels
from ocf_data_sampler.select.select_spatial_slice import select_spatial_slice_pixels

from ocf_dataset_alpha.numpy_batch import (
from ocf_data_sampler.numpy_batch import (
convert_gsp_to_numpy_batch,
convert_nwp_to_numpy_batch,
convert_satellite_to_numpy_batch,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import xarray as xr

from ocf_dataset_alpha.load.nwp.providers.ukv import open_ukv
from ocf_dataset_alpha.load.nwp.providers.ecmwf import open_ifs
from ocf_data_sampler.load.nwp.providers.ukv import open_ukv
from ocf_data_sampler.load.nwp.providers.ecmwf import open_ifs


def open_nwp(zarr_path: Path | str | list[Path] | list[str], provider: str = "ukv"):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""ECMWF provider loaders"""
from pathlib import Path
import xarray as xr
from ocf_dataset_alpha.load.nwp.providers.utils import (
from ocf_data_sampler.load.nwp.providers.utils import (
open_zarr_paths, check_time_unique_increasing
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from pathlib import Path


from ocf_dataset_alpha.load.nwp.providers.utils import (
from ocf_data_sampler.load.nwp.providers.utils import (
open_zarr_paths, check_time_unique_increasing
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
install_requires = (this_directory / "requirements.txt").read_text().splitlines()

setup(
name="cool_ocf_project",
name="ocf_data_sampler",
version="0.0.1",
license="MIT",
description="Super cool OCF Repo",
author="Jacob Bieker, Jack Kelly, Peter Dudfield",
author="James Fulton, Peter Dudfield, and the Open Climate Fix team",
author_email="[email protected]",
company="Open Climate Fix Ltd",
install_requires=install_requires,
Expand Down
2 changes: 1 addition & 1 deletion tests/load/test_load_gsp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ocf_dataset_alpha.load.gsp import open_gsp
from ocf_data_sampler.load.gsp import open_gsp
import xarray as xr


Expand Down
2 changes: 1 addition & 1 deletion tests/load/test_load_nwp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import pandas as pd
from xarray import DataArray

from ocf_dataset_alpha.load.nwp import open_nwp
from ocf_data_sampler.load.nwp import open_nwp


def test_load_ukv(nwp_ukv_zarr_path):
Expand Down
2 changes: 1 addition & 1 deletion tests/load/test_load_satellite.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from ocf_dataset_alpha.load.satellite import open_sat_data
from ocf_data_sampler.load.satellite import open_sat_data
import xarray as xr
import numpy as np

Expand Down

0 comments on commit 6433b49

Please sign in to comment.