Loading pixi.lock +1 −1 Original line number Diff line number Diff line Loading @@ -2565,7 +2565,7 @@ packages: - pypi: . name: pythermogis version: 0.1.28 sha256: 898eafd4ceb075b05a92fa6a885618a9823f96e55706a60a8ff56ef531aa22f4 sha256: f6daaa0afaa794067bae1dde1a78ace679f8907984ef70e167cec532d1f45b51 requires_dist: - jpype1>=1.5.2,<2 - xarray==2024.9.0.* Loading pyproject.toml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ markers = [ package-dir = {"" = "src"} [project.scripts] pytg = "main:app" pytg = "pythermogis.main:app" [tool.pixi.project] channels = ["conda-forge"] Loading src/pythermogis/main.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import numpy as np import xarray as xr import typer from thermogis_classes.doublet import calculate_doublet_performance from pythermogis.thermogis_classes.doublet import calculate_doublet_performance app = typer.Typer(pretty_exceptions_enable=False) Loading tests/test_doc_examples.py +0 −14 Original line number Diff line number Diff line Loading @@ -57,20 +57,6 @@ def test_example_4(): results = calculate_doublet_performance(input_data, utc_properties=utc_properties) print(results) def test_quick_change(): from pygridsio import read_grid, remove_padding_from_grid, write_grid, resample_xarray_grid # the location of the input data: the data can be found in the resources/example_data directory of the repo input_data_path = Path(path.dirname(__file__), "resources") / "test_input" / "example_data" # create a directory to write the output files to output_data_path = Path(path.dirname(__file__), "resources") / "test_input" / "example_data_resampled" output_data_path.mkdir(parents=True, exist_ok=True) grid_files = input_data_path.glob("*.zmap") for filename in grid_files: grid_new = resample_xarray_grid(remove_padding_from_grid(read_grid(filename)), new_cellsize=1000) write_grid(grid_new, output_data_path / filename.name) def test_example_5(): return from pythermogis import calculate_doublet_performance Loading Loading
pixi.lock +1 −1 Original line number Diff line number Diff line Loading @@ -2565,7 +2565,7 @@ packages: - pypi: . name: pythermogis version: 0.1.28 sha256: 898eafd4ceb075b05a92fa6a885618a9823f96e55706a60a8ff56ef531aa22f4 sha256: f6daaa0afaa794067bae1dde1a78ace679f8907984ef70e167cec532d1f45b51 requires_dist: - jpype1>=1.5.2,<2 - xarray==2024.9.0.* Loading
pyproject.toml +1 −1 Original line number Diff line number Diff line Loading @@ -35,7 +35,7 @@ markers = [ package-dir = {"" = "src"} [project.scripts] pytg = "main:app" pytg = "pythermogis.main:app" [tool.pixi.project] channels = ["conda-forge"] Loading
src/pythermogis/main.py +1 −1 Original line number Diff line number Diff line Loading @@ -4,7 +4,7 @@ import numpy as np import xarray as xr import typer from thermogis_classes.doublet import calculate_doublet_performance from pythermogis.thermogis_classes.doublet import calculate_doublet_performance app = typer.Typer(pretty_exceptions_enable=False) Loading
tests/test_doc_examples.py +0 −14 Original line number Diff line number Diff line Loading @@ -57,20 +57,6 @@ def test_example_4(): results = calculate_doublet_performance(input_data, utc_properties=utc_properties) print(results) def test_quick_change(): from pygridsio import read_grid, remove_padding_from_grid, write_grid, resample_xarray_grid # the location of the input data: the data can be found in the resources/example_data directory of the repo input_data_path = Path(path.dirname(__file__), "resources") / "test_input" / "example_data" # create a directory to write the output files to output_data_path = Path(path.dirname(__file__), "resources") / "test_input" / "example_data_resampled" output_data_path.mkdir(parents=True, exist_ok=True) grid_files = input_data_path.glob("*.zmap") for filename in grid_files: grid_new = resample_xarray_grid(remove_padding_from_grid(read_grid(filename)), new_cellsize=1000) write_grid(grid_new, output_data_path / filename.name) def test_example_5(): return from pythermogis import calculate_doublet_performance Loading