Skip to content

Commit

Permalink
Get root folder from original ds
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Oct 9, 2024
1 parent 42a70ee commit b1e35bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yt/frontends/ramses/tests/test_outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -728,9 +728,10 @@ def test_self_shielding_logic():

##################################################
# Modify the namelist in-situ, reload and check
root_folder = Path(ds.root_folder)
for section in ("physics_params", "cooling_params"):
for val in (True, False):
with override_self_shielding(ds.root_folder, section, val) as tmp_output:
with override_self_shielding(root_folder, section, val) as tmp_output:
# Autodetection should work
ds = yt.load(tmp_output)
assert ds.parameters["namelist"] is not None
Expand Down

0 comments on commit b1e35bd

Please sign in to comment.