Skip to content

Commit b062763

Browse files
authored
Remove deprecated fns (#215)
1 parent c1047df commit b062763

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

src/yadg/extractors/fusion/zip.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def extract_from_path(
6969
filenames = [ffn for ffn in os.listdir(tempdir) if ffn.endswith("fusion-data")]
7070
for ffn in sorted(filenames):
7171
path = Path(tempdir) / ffn
72-
fdt = extract_json(fn=path, timezone=timezone, encoding=encoding, **kwargs)
72+
fdt = extract_json(
73+
source=path, timezone=timezone, encoding=encoding, **kwargs
74+
)
7375
dt = dgutils.merge_dicttrees(dt, fdt.to_dict(), "identical")
7476
return DataTree.from_dict(dt)

tests/test_x_empalc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def _datadir(tmpdir, request):
2323
)
2424
def test_empalc_consistency(afile, bfile, _datadir):
2525
os.chdir(_datadir)
26-
aret = extract_xls(fn=Path(afile))
27-
bret = extract_csv(fn=Path(bfile), encoding="utf-8")
26+
aret = extract_xls(source=Path(afile))
27+
bret = extract_csv(source=Path(bfile), encoding="utf-8")
2828

2929
for key in aret.variables:
3030
if key.endswith("std_err"):

tests/test_x_ezchrom.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def ezchrom_datadir(tmpdir, request):
2828
def test_ezchrom_consistency(dfile, afile, ezchrom_datadir):
2929
os.chdir(ezchrom_datadir)
3030
aret = extract_dat(
31-
fn=Path(dfile),
31+
source=Path(dfile),
3232
timezone="Europe/Berlin",
3333
)
3434
bret = extract_asc(
35-
fn=Path(afile),
35+
source=Path(afile),
3636
timezone="Europe/Berlin",
3737
encoding="windows-1252",
3838
)

tests/test_x_panalytical.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def _datadir(tmpdir, request):
2525
)
2626
def test_panalytical_consistency(afile, bfile, _datadir):
2727
os.chdir(_datadir)
28-
aret = extract_csv(fn=Path(afile), encoding="utf-8", timezone="Europe/Berlin")
29-
bret = extract_xrdml(fn=Path(bfile), encoding="utf-8", timezone="Europe/Berlin")
28+
aret = extract_csv(source=Path(afile), encoding="utf-8", timezone="Europe/Berlin")
29+
bret = extract_xrdml(source=Path(bfile), encoding="utf-8", timezone="Europe/Berlin")
3030
for key in aret.variables:
3131
if key.endswith("std_err"):
3232
continue

0 commit comments

Comments
 (0)