mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
remove init_lib() call in MicroXS.from_model(); use setdefault to ensure correct directory is used
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
3c483a7d7d
commit
f8101006d8
1 changed files with 2 additions and 4 deletions
|
|
@ -94,10 +94,8 @@ class MicroXS(DataFrame):
|
|||
with tempfile.TemporaryDirectory() as temp_dir:
|
||||
if run_kwargs is None:
|
||||
run_kwargs = {}
|
||||
model.init_lib()
|
||||
elif 'cwd' in run_kwargs:
|
||||
run_kwargs.pop('cwd')
|
||||
statepoint_path = model.run(cwd=temp_dir, **run_kwargs)
|
||||
run_kwargs.setdefault('cwd', temp_dir)
|
||||
statepoint_path = model.run(**run_kwargs)
|
||||
|
||||
with StatePoint(statepoint_path) as sp:
|
||||
for rx in xs:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue