mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
explicit instance check
This commit is contained in:
parent
b8c7c76444
commit
1b68e61a3e
1 changed files with 2 additions and 2 deletions
|
|
@ -1,9 +1,9 @@
|
|||
from collections.abc import Iterable
|
||||
from numbers import Integral
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
import openmc
|
||||
from openmc.checkvalue import PathLike
|
||||
from .plots import _get_plot_image
|
||||
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ def _process_CLI_arguments(volume=False, geometry_debug=False, particles=None,
|
|||
if event_based:
|
||||
args.append('-e')
|
||||
|
||||
if isinstance(restart_file, PathLike.__args__):
|
||||
if isinstance(restart_file, (str, os.PathLike)):
|
||||
args += ['-r', str(restart_file)]
|
||||
|
||||
if tracks:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue