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
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