Skip to content

Commit b17de0f

Browse files
committed
fix energy test due to new default config values
1 parent f8f7ecf commit b17de0f

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

tests/calibrator/test_energy.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,12 @@ def test_adjust_energy_correction_raises(correction_type: str) -> None:
455455
Args:
456456
correction_type (str): type of correction to test
457457
"""
458-
config = parse_config(config={}, folder_config={}, user_config={}, system_config={})
458+
config = parse_config(
459+
config={"dataframe": {"tof_binning": 2}},
460+
folder_config={},
461+
user_config={},
462+
system_config={},
463+
)
459464
ec = EnergyCalibrator(
460465
config=config,
461466
loader=get_loader("mpes", config=config),
@@ -499,7 +504,12 @@ def test_energy_correction_from_dict_kwds(correction_type: str, correction_kwd:
499504
correction_type (str): type of correction to test
500505
correction_kwd (dict): parameters to pass to the function
501506
"""
502-
config = parse_config(config={}, folder_config={}, user_config={}, system_config={})
507+
config = parse_config(
508+
config={"dataframe": {"tof_binning": 2}},
509+
folder_config={},
510+
user_config={},
511+
system_config={},
512+
)
503513
sample_df = pd.DataFrame(sample, columns=columns)
504514
ec = EnergyCalibrator(
505515
config=config,

0 commit comments

Comments
 (0)