Skip to content

Commit

Permalink
pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
jcanton committed Dec 16, 2024
1 parent d0de48b commit 58ff8a3
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
10 changes: 8 additions & 2 deletions model/atmosphere/dycore/docs/ext/icon4py_sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,8 +192,14 @@ def make_offset_providers(self, offset_providers: set) -> list[str]:
]

for offprov in offset_providers:
op_section.extend([f" .. image:: static/img/offsetProvider_{offprov}.png",
f" :alt: {offprov}", " :class: offset-provider-img", ""])
op_section.extend(
[
f" .. image:: static/img/offsetProvider_{offprov}.png",
f" :alt: {offprov}",
" :class: offset-provider-img",
"",
]
)

return op_section

Expand Down
12 changes: 9 additions & 3 deletions model/atmosphere/dycore/docs/ext/offset_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,17 @@ def color_vertex(self, vertex, coloridx=0):
vertex_size = self.vertex_size - 2 * coloridx
match vertex:
case "A":
self.ax.plot(self.A[0], self.A[1], "o", color=COLORS[coloridx], markersize=vertex_size)
self.ax.plot(
self.A[0], self.A[1], "o", color=COLORS[coloridx], markersize=vertex_size
)
case "B":
self.ax.plot(self.B[0], self.B[1], "o", color=COLORS[coloridx], markersize=vertex_size)
self.ax.plot(
self.B[0], self.B[1], "o", color=COLORS[coloridx], markersize=vertex_size
)
case "C":
self.ax.plot(self.C[0], self.C[1], "o", color=COLORS[coloridx], markersize=vertex_size)
self.ax.plot(
self.C[0], self.C[1], "o", color=COLORS[coloridx], markersize=vertex_size
)

def color_vertices(self, coloridx=0):
"""
Expand Down

0 comments on commit 58ff8a3

Please sign in to comment.