mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Updating globs
This commit is contained in:
parent
1b68e61a3e
commit
0aa36836b3
1 changed files with 2 additions and 3 deletions
|
|
@ -1,4 +1,3 @@
|
|||
import glob
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
|
|
@ -44,7 +43,7 @@ class StatepointRestartTestHarness(TestHarness):
|
|||
|
||||
def _run_openmc_restart(self):
|
||||
# Get the name of the statepoint file.
|
||||
statepoint = glob.glob(os.path.join(os.getcwd(), self._restart_sp))
|
||||
statepoint = list(Path(os.getcwd()).glob(self._restart_sp))
|
||||
assert len(statepoint) == 1
|
||||
statepoint = statepoint[0]
|
||||
|
||||
|
|
@ -83,4 +82,4 @@ def test_batch_check(request):
|
|||
sp_file = model.run(restart_file=sp_file)
|
||||
|
||||
sp = openmc.StatePoint(sp_file)
|
||||
assert sp.n_batches == 15
|
||||
assert sp.n_batches == 15
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue