Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
blaylockbk committed Jan 14, 2025
1 parent 2848653 commit c4c9057
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 58 deletions.
60 changes: 22 additions & 38 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,89 +4,73 @@ name: herbie-dev
channels:
- conda-forge
dependencies:
- python>=3.11
- pip
- git
- curl
- rclone # Not required, but is an awesome alternative (https://rclone.org/)
- wgrib2 # ONLY AVAILABLE ON LINUX. Comment if not using Linux.
- eccodes>=2.31
- git
- pip
- python>=3.13
- rclone
- uv
- wgrib2 # Linux only

# ===========
# Handy Tools
# ===========
# ============
# Dependencies
# ============
- cartopy>=0.22
- cfgrib>=0.9.10.4
- eccodes>=2.31
- geopandas
- h5py
- jupyter
- jupyterlab
- matplotlib>=3.4.3
- metpy
- netcdf4
- numpy>=1.25
- pandas>=2.0
- polars>=1.0
- polars>=1.17.1
- pygrib>=2.1.4
- pylint
- pyproj>=3.6
- requests>=2.31
- s3fs
- scipy
- scipy>=1.15.1
- scikit-learn
- toml
- xarray>=2023.7
- zarr

# ===================
# Formatter & Testing
# ===================
# ===========
# Development
# ===========
- ruff
- black
- black-jupyter
- isort
- pylint
- pytest
- pytest-cov
- line_profiler

# =============
# Documentation
# =============
- sphinx>=4.4.0
- nbsphinx
- nbconvert>=6.5
- pydata-sphinx-theme # PyData Sphinx Theme (i.e, Numpy, Pandas, MetPy)
- pydata-sphinx-theme
- sphinx-design
- recommonmark
- sphinx-markdown-tables
- sphinxcontrib-mermaid # For mermaid diagram support
- sphinxcontrib-mermaid
- autodocsumm
- sphinx-autosummary-accessors # pandas and xarray accessor docs
- sphinx-autosummary-accessors
- latexmk
- myst-parser
- linkify-it-py

#- pip:
#- cartopy>=0.22
# Herbie: Development version from GitHub
#- git+https://github.com/blaylockbk/Herbie.git

# Install a specific branch
#- git+https://github.com/blaylockbk/Herbie.git@blaylockbk/issue98

# Borrow some tools from my garage
#- git+https://github.com/blaylockbk/Carpenter_Workshop.git

# Create idx files on the fly!! -- Waiting for package maturity
#- git+https://github.com/joxtoby/beltzer.git
# =============================================================================
# Extra Setup Steps
# Setup Steps
# =============================================================================
# conda activate herbie-dev
# mamba activate herbie-dev
# git clone https://github.com/blaylockbk/Herbie.git
# cd Herbie
# pip install -e .
#
# cd ~
# git clone https://github.com/blaylockbk/Carpenter_Workshop.git
# cd Carpenter_Workshop
# pi install -e .
Expand Down
17 changes: 2 additions & 15 deletions tests/test_hrrr.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import requests
import pandas as pd


now = datetime.now()
today = datetime(now.year, now.month, now.day, now.hour) - timedelta(hours=6)
yesterday = today - timedelta(days=1)
Expand Down Expand Up @@ -108,7 +109,7 @@ def test_do_not_remove_file():


@pytest.mark.skipif(wgrib2 is None, reason="wgrib2 not installed")
def test_make_idx_with_wgrib():
def test_make_idx_with_wgrib2():
H = Herbie(
"2022-12-13 6:00",
model="hrrr",
Expand All @@ -128,20 +129,6 @@ def test_make_idx_with_wgrib():
assert H.idx_source == "generated", "Doesn't look like a generated idx file."


@pytest.mark.skipif(wgrib2 is None, reason="wgrib2 not installed")
def test_create_idx_with_wgrib2():
"""Test that Herbie can make an index file with wgrib2 when an index file is not found"""
H = Herbie(
today_str,
model="hrrr",
product="sfc",
save_dir=save_dir,
)
H.download()
H.idx = None
assert len(H.index_as_dataframe) > 0


# ===========================
# Check Downloaded File Sizes
# ===========================
Expand Down
5 changes: 0 additions & 5 deletions tests/test_pick_points.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,3 @@ def test_pick_points_self_points():

r1 = ds.herbie.pick_points(points_self)
assert all(r1.point_grid_distance == 0)


def test_caching_tree():
"""Test the BallTree caching works as expected."""
pass

0 comments on commit c4c9057

Please sign in to comment.