Skip to content

Commit a484c34

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 8ab2800 commit a484c34

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

docs/source/handle_markdown.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def get_markdown_links(line: str) -> str:
3535
str: Markdown links.
3636
"""
3737
possible = re.findall(r"\[(.*?)\]\((.*?)\)", line)
38-
return possible if possible else ""
38+
return possible or ""
3939

4040

4141
def get_special_links(line: str) -> List[Tuple[str, str]]:
@@ -52,7 +52,7 @@ def get_special_links(line: str) -> List[Tuple[str, str]]:
5252
x[::-1]
5353
for x in re.findall(r"<img src=\"(.*?)\".*title=\"(.*?)\">", line)
5454
]
55-
return possible if possible else ""
55+
return possible or ""
5656

5757

5858
def get_github_path_from(link):

splinepy/io/gismo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -822,7 +822,7 @@ def _matrix_from_node(xml_node):
822822
if format_flag.lower() == "ascii":
823823
return _np.fromstring(xml_node.text.replace("\n", " "), sep=" ")
824824
# Check for all excepted binary flags
825-
format = type_from_keyword.get(format_flag.lower(), None)
825+
format = type_from_keyword.get(format_flag.lower())
826826

827827
if format is None:
828828
raise ValueError(

splinepy/io/mfem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def _corner_vertex_ids(spline):
406406
# Retrieve information using bezman
407407
connectivity = spline_list.interfaces
408408

409-
(_, _, inverse_numeration, _) = _gus.utils.arr.close_rows(
409+
_, _, inverse_numeration, _ = _gus.utils.arr.close_rows(
410410
corner_vertices, tolerance, return_intersection=False
411411
)
412412
vertex_ids = inverse_numeration.reshape(-1, n_vertex_per_element)

0 commit comments

Comments
 (0)