Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 20, 2025
1 parent ddc939d commit 504eb68
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
3 changes: 1 addition & 2 deletions battDB/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ class Meta:
help_texts = {
"device_type": "Is this a cell or a module?",
"parent": (
"Leave blank unless this cell is a part of "
"a particular module or pack"
"Leave blank unless this cell is a part of a particular module or pack"
),
}

Expand Down
3 changes: 1 addition & 2 deletions dfndb/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ class meta:
can_delete=True,
help_texts={
"compound": mark_safe(
'<a href="/dfndb/new_compound/" target="_blank"> '
"new compound &#10697;</a>"
'<a href="/dfndb/new_compound/" target="_blank"> new compound &#10697;</a>'
)
},
)
7 changes: 5 additions & 2 deletions parsing_engines/parsing_engines_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,17 @@ def _drop_unnamed_columns(self) -> None:
self.data = self.data.loc[:, cols]

def get_column_info(self) -> dict:
"""Gathers some metadata for each column.
(
"""Gathers some metadata for each column.
In particular, it gathers if it is a numeric column and if it has data.
Returns:
A nested dictionary with the above information for each column, proved as
keys 'is_numeric' and 'has_data.
""" ""
"""
""
)
return {
k: {
"is_numeric": is_numeric_dtype(self.data[k].dtype),
Expand Down

0 comments on commit 504eb68

Please sign in to comment.