mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Suggestions from PR review by @Paulromano
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
6eb00c6c6f
commit
99cb83c035
1 changed files with 2 additions and 2 deletions
|
|
@ -474,7 +474,7 @@ class Settings:
|
|||
return self._max_splits
|
||||
|
||||
@run_mode.setter
|
||||
def run_mode(self, run_mode: RunMode):
|
||||
def run_mode(self, run_mode: str):
|
||||
cv.check_value('run mode', run_mode, {x.value for x in RunMode})
|
||||
for mode in RunMode:
|
||||
if mode.value == run_mode:
|
||||
|
|
@ -774,7 +774,7 @@ class Settings:
|
|||
self._trace = trace
|
||||
|
||||
@track.setter
|
||||
def track(self, track: Iterable):
|
||||
def track(self, track: typint.Iterable[int]):
|
||||
cv.check_type('track', track, Iterable, Integral)
|
||||
if len(track) % 3 != 0:
|
||||
msg = f'Unable to set the track to "{track}" since its length is ' \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue