Skip to content

Commit 0b46822

Browse files
committed
fix: bad imports so tests pass
1 parent 7cd01f1 commit 0b46822

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/diffpy/utils/parsers/serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def serialize_data(
3737
into a serial language file. Dictionary is formatted as {filename:
3838
data}.
3939
40-
Requires hdata and data_table (can be generated by loadData).
40+
Requires hdata and data_table (can be generated by load_data).
4141
4242
Parameters
4343
----------

src/diffpy/utils/tools.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from xraydb import material_mu
1010

1111
from diffpy.utils import validators
12-
from diffpy.utils.parsers.loaddata import loadData
1312

1413

1514
def _stringify(string_value):
@@ -391,7 +390,7 @@ def compute_mud(filepath):
391390
mu*D : float
392391
The best-fit mu*D value.
393392
"""
394-
z_data, I_data = loadData(filepath, unpack=True)
393+
z_data, I_data = load_data(filepath, unpack=True)
395394
best_mud, _ = min(
396395
(_compute_single_mud(z_data, I_data) for _ in range(20)),
397396
key=lambda pair: pair[1],

tests/test_serialization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
ImproperSizeError,
88
UnsupportedTypeError,
99
)
10-
from diffpy.utils.parsers.loaddata import load_data
1110
from diffpy.utils.parsers.serialization import deserialize_data, serialize_data
11+
from diffpy.utils.tools import load_data
1212

1313

1414
def test_load_multiple(tmp_path, datafile):

0 commit comments

Comments
 (0)