Skip to content

Commit 0dc31be

Browse files
committed
update custom intervention syntax
1 parent 499f39e commit 0dc31be

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

docs/tutorials/t5.ipynb

-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,6 @@
355355
"\n",
356356
" def __init__(self, start_day=None, end_day=None, age_cutoff=70, rel_sus=0.0, *args, **kwargs):\n",
357357
" super().__init__(**kwargs) # This line must be included\n",
358-
" self._store_args() # So must this one\n",
359358
" self.start_day = start_day\n",
360359
" self.end_day = end_day\n",
361360
" self.age_cutoff = age_cutoff\n",

examples/t5_custom_intervention.py

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ class protect_elderly(cv.Intervention):
1010

1111
def __init__(self, start_day=None, end_day=None, age_cutoff=70, rel_sus=0.0, *args, **kwargs):
1212
super().__init__(**kwargs) # This line must be included
13-
self._store_args() # So must this one
1413
self.start_day = start_day
1514
self.end_day = end_day
1615
self.age_cutoff = age_cutoff

0 commit comments

Comments
 (0)