Update comment strings, closes
@@ -21,7 +21,7 @@ class Analyzer(sc.prettyobj):
Base class for analyzers. Based on the Intervention class.
Args:
- label (str): a label for the intervention (used for ease of identification)
+ label (str): a label for the Analyzer (used for ease of identification)
'''
def __init__(self, label=None):
@@ -104,7 +104,7 @@ class snapshot(Analyzer):
Args:
days (list): list of ints/strings/date objects, the days on which to take the snapshot
- kwargs (dict): passed to Intervention()
+ kwargs (dict): passed to Analyzer()
**Example**::
@@ -120,7 +120,7 @@ class snapshot(Analyzer):
'''
def __init__(self, days, *args, **kwargs):
- super().__init__(**kwargs) # Initialize the Intervention object
+ super().__init__(**kwargs) # Initialize the Analyzer object
days = sc.promotetolist(days) # Combine multiple days
days.extend(args) # Include additional arguments, if present
self.days = days # Converted to integer representations
@@ -173,7 +173,7 @@ class age_histogram(Analyzer):
edges (list): edges of age bins to use (default: 10 year bins from 0 to 100)
datafile (str): the name of the data file to load in for comparison, or a dataframe of data (optional)
sim (Sim): only used if the analyzer is being used after a sim has already been run
- kwargs (dict): passed to Intervention()
+ kwargs (dict): passed to Analyzer()
**Examples**::
