Skip to content

Commit

Permalink
fix deprecation warning in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhsmit committed Apr 20, 2022
1 parent d188e8f commit 29d45b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
fit_rates_half_time_interpolate,
GenericFitResult,
)
from pyhdx.batch_processing import yaml_to_hdxmset
from pyhdx.batch_processing import StateParser
from pyhdx.models import HDXMeasurementSet

cwd = Path(__file__).parent
Expand Down Expand Up @@ -269,8 +269,10 @@ def test_batch_fit(self, tmp_path):
# batch fit on delta N/C tail dataset
def test_batch_fit_delta(self, tmp_path):
yaml_file = input_dir / "data_states_deltas.yaml"
yaml_dict = yaml.safe_load(yaml_file.read_text())
hdxm_set = yaml_to_hdxmset(yaml_dict, data_dir=input_dir)
yaml_spec = yaml.safe_load(yaml_file.read_text())
parser = StateParser(yaml_spec, data_src=input_dir)

hdxm_set = parser.load_hdxmset()
guess_output = csv_to_dataframe(output_dir / "ecSecB_guess.csv")

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

0 comments on commit 29d45b7

Please sign in to comment.