Skip to content

Commit 8847612

Browse files
author
Johannes Hentschel
authoredSep 26, 2024··
Minor fixes (#119)
2 parents 16ebbf3 + 06dad93 commit 8847612

File tree

5 files changed

+72
-108
lines changed

5 files changed

+72
-108
lines changed
 

‎.pre-commit-config.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ exclude: '^docs/conf.py'
22

33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.6.0
66
hooks:
77
- id: trailing-whitespace
88
- id: check-added-large-files
@@ -40,13 +40,13 @@ repos:
4040
hooks:
4141
- id: seed-isort-config
4242
- repo: https://github.com/pycqa/isort
43-
rev: 5.12.0
43+
rev: 5.13.2
4444
hooks:
4545
- id: isort
4646
args: ["--profile", "black", "--filter-files"]
4747

4848
- repo: https://github.com/ambv/black
49-
rev: 23.7.0
49+
rev: 24.8.0
5050
hooks:
5151
- id: black
5252
language_version: python3.10
@@ -59,7 +59,7 @@ repos:
5959
# additional_dependencies: [black]
6060

6161
- repo: https://github.com/PyCQA/flake8
62-
rev: 6.1.0
62+
rev: 7.1.1
6363
hooks:
6464
- id: flake8
6565
args:

‎setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ install_requires =
4949
frictionless[pandas,visidata]
5050
lxml
5151
pandas>=1.5.3
52+
numpy<2.0.0
5253
pathos
5354
webcolors
5455
tqdm

‎src/ms3/bs4_parser.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1476,7 +1476,7 @@ def get_raw_labels(self):
14761476
columns={v: k for k, v in cols.items() if v in df.columns}, inplace=True
14771477
)
14781478
if "harmony_layer" in df.columns:
1479-
df.harmony_layer.fillna(0, inplace=True)
1479+
df.harmony_layer = df.harmony_layer.fillna(0)
14801480
columns = [c for c in main_cols if c in df.columns]
14811481
additional_cols = {
14821482
c: c[8:]

‎src/ms3/expand_dcml.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -624,9 +624,9 @@ def propagate_keys(
624624
logger.info(
625625
"Dataframe needs to have a 'mc' column. Ignoring volta_structure."
626626
)
627-
df[localkey].ffill(inplace=True)
627+
df[localkey] = df[localkey].ffill()
628628
else:
629-
df[localkey].ffill(inplace=True)
629+
df[localkey] = df[localkey].ffill()
630630

631631
if add_bool:
632632
gm = f"{globalkey}_is_minor"

0 commit comments

Comments
 (0)
Please sign in to comment.