Skip to content

Commit 29d45b7

Browse files
committed
fix deprecation warning in tests
1 parent d188e8f commit 29d45b7

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/test_fitting.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
fit_rates_half_time_interpolate,
1919
GenericFitResult,
2020
)
21-
from pyhdx.batch_processing import yaml_to_hdxmset
21+
from pyhdx.batch_processing import StateParser
2222
from pyhdx.models import HDXMeasurementSet
2323

2424
cwd = Path(__file__).parent
@@ -269,8 +269,10 @@ def test_batch_fit(self, tmp_path):
269269
# batch fit on delta N/C tail dataset
270270
def test_batch_fit_delta(self, tmp_path):
271271
yaml_file = input_dir / "data_states_deltas.yaml"
272-
yaml_dict = yaml.safe_load(yaml_file.read_text())
273-
hdxm_set = yaml_to_hdxmset(yaml_dict, data_dir=input_dir)
272+
yaml_spec = yaml.safe_load(yaml_file.read_text())
273+
parser = StateParser(yaml_spec, data_src=input_dir)
274+
275+
hdxm_set = parser.load_hdxmset()
274276
guess_output = csv_to_dataframe(output_dir / "ecSecB_guess.csv")
275277

276278
gibbs_guess = hdxm_set[0].guess_deltaG(guess_output["rate"])

0 commit comments

Comments
 (0)