Skip to content

Commit

Permalink
Chore: Address final linting errors in Daniel's PR os-climate#238
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions committed Mar 11, 2024
1 parent a454e65 commit 535f290
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,4 @@ jobs:
with:
verbose: true
repository-url: https://test.pypi.org/legacy/
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ sphinx:
# See https://docs.readthedocs.io/en/stable/guides/reproducible-builds.html
python:
install:
- requirements: docs/requirements-docs.txt
- requirements: docs/requirements-docs.txt
2 changes: 1 addition & 1 deletion docs/getting-started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ for example), and then how to make the cleaned, final data sets.
.. toctree::
:maxdepth: 1

test
test
2 changes: 1 addition & 1 deletion docs/hazards/riverine_floods.rst
Original file line number Diff line number Diff line change
Expand Up @@ -385,4 +385,4 @@ corresponding to the flood intensity in that grid cell. The figure
Bibliography
---------------------------------

.. bibliography:: ../references.bib
.. bibliography:: ../references.bib
2 changes: 1 addition & 1 deletion docs/hazards/wildfire.rst
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,4 @@ on the exposure.
Bibliography
---------------------------------

.. bibliography:: ../references.bib
.. bibliography:: ../references.bib
2 changes: 1 addition & 1 deletion docs/methodology.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Physical Climate Risk Methodology
.. pdf-include:: _static/PhysicalRiskMethodology.pdf
:toolbar: 0
:width: 100%
:height: 800px
:height: 800px
2 changes: 1 addition & 1 deletion docs/requirements-docs.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ s3fs==2022.1.0
zarr==2.10.3
pillow==9.4.0
dependency-injector==4.41.0
numba==0.56.4
numba==0.56.4
1 change: 1 addition & 0 deletions docs/test.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"outputs": [],
"source": [
"import numpy as np\n",
"\n",
"# you need to add matplotlib to the Pipfile\n",
"import matplotlib.pyplot as plt"
]
Expand Down
3 changes: 2 additions & 1 deletion src/physrisk/data/zarr_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,8 @@ def get_max_curves_on_grid(self, set_id, longitudes, latitudes, interpolation="f
latitudes: list of latitudes.
interpolation: interpolation method, "floor", "linear", "max" or "min".
delta_km: linear distance in kilometres of the side of the square grid surrounding a given position.
n_grid: number of grid points along the latitude and longitude dimensions used for calculating the maximal value.
n_grid: number of grid points along the latitude and longitude dimensions used for
calculating the maximal value.
Returns:
curves_max: numpy array of maximum intensity on the grid for a given coordinate pair
Expand Down

0 comments on commit 535f290

Please sign in to comment.