Skip to content

Commit

Permalink
one-line int conversion
Browse files Browse the repository at this point in the history
Since `frame` would appear in the error anyway, I guess this is cleaner
  • Loading branch information
giboul authored Dec 8, 2024
1 parent a4e5a9d commit 1f0105a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyclaw/solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def get_clawpack_dot_xxx(modname): return modname.rpartition('.')[0]
self.domain = None
if len(arg) == 1:
# Load frame
frame = arg[0]
frame = int(frame)
frame = int(arg[0])
if ('count_from_zero' in kargs):
if (kargs['count_from_zero'] == True):
self._start_frame = 0
Expand Down

0 comments on commit 1f0105a

Please sign in to comment.