Skip to content

Commit 8f257a6

Browse files
committed
Remove public isnap setter
1 parent 1cd201a commit 8f257a6

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

stagpy/_step.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -449,14 +449,6 @@ def isnap(self):
449449
self._isnap = None
450450
return self._isnap
451451

452-
@isnap.setter
453-
def isnap(self, isnap):
454-
"""Fields snap corresponding to time step"""
455-
try:
456-
self._isnap = int(isnap)
457-
except ValueError:
458-
pass
459-
460452

461453
class EmptyStep(Step):
462454

stagpy/stagyydata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def _bind(self, isnap, istep):
403403
istep (int): time step index.
404404
"""
405405
self._isteps[isnap] = istep
406-
self.sdat.steps[istep].isnap = isnap
406+
self.sdat.steps[istep]._isnap = isnap
407407

408408
@property
409409
def last(self):

0 commit comments

Comments
 (0)