Skip to content

Commit

Permalink
184 ruff precommit and 185 improved transect plot (#185)
Browse files Browse the repository at this point in the history
* add ruff tools #184

* ruff formatting, add function to densify cross section points #184

* funcs for plotting wetted cross section #183

* fix #184

* remove ref in docstring _frames_plot #184

* fix #183

* re-added tests for transect plotting

* fix #188 add ruff linting #184
  • Loading branch information
hcwinsemius authored Oct 30, 2024
1 parent b55330c commit 2a8c7a3
Show file tree
Hide file tree
Showing 10 changed files with 1,093 additions and 899 deletions.
9 changes: 8 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files

- id: mixed-line-ending
- id: check-ast
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.2
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
- id: ruff-format
- repo: https://github.com/kynan/nbstripout
rev: 0.7.1 # Use the latest version
hooks:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
"# so we have to tell the axes that the coordinates need to be transformed from that crs into the crs of the axes.\n",
"# we also make a very very small buffer of 0.00005 degrees around the area of interest, so that we can \n",
"# clearly see the cross sections.\n",
"ax = ds.velocimetry.camera_config.plot(tiles=\"GoogleTiles\", tiles_kwargs={\"style\": \"satellite\"}, buffer=0.00005)\n",
"ax = ds.velocimetry.camera_config.plot(tiles=\"GoogleTiles\", zoom_level=22, tiles_kwargs={\"style\": \"satellite\"}, buffer=0.00005)\n",
"ax.plot(x, y, \"g--\", transform=ccrs.UTM(zone=35, southern_hemisphere=True), label=\"Cross section #1\")\n",
"ax.plot(x2, y2, \"y--\", transform=ccrs.UTM(zone=35, southern_hemisphere=True), label=\"Cross section #2\")\n",
"ax.legend()\n",
Expand Down Expand Up @@ -321,7 +321,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.0"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 2a8c7a3

Please sign in to comment.