@@ -300,14 +300,14 @@ class CheckedSession(Session, AbstractCheckedSession, metaclass=ModelMetaclass):
300
300
time [11]: 2020 2021 2022 ... 2028 2029 2030
301
301
dtype: float64
302
302
memory used: 1.89 Kb
303
- >>> # and the line below will crashes
303
+ >>> # and the line below will crash
304
304
>>> m.births[2025] = new_births # doctest: +NORMALIZE_WHITESPACE
305
305
Traceback (most recent call last):
306
306
...
307
307
ValueError: Value {time} axis is not present in target subset {age, gender}.
308
308
A value can only have the same axes or fewer axes than the subset being targeted
309
309
>>> # now let's try to do the same for deaths and making the same mistake as for 'birth_rate'.
310
- >>> # The program will crash now at the first step instead of letting you going further
310
+ >>> # The program will crash now at the first step instead of letting you go further
311
311
>>> m.mortality_rate = full((AGE, GENDER, TIME), fill_value=sequence(AGE, inc=0.02)) \
312
312
# doctest: +NORMALIZE_WHITESPACE
313
313
Traceback (most recent call last):
@@ -320,7 +320,7 @@ class CheckedSession(Session, AbstractCheckedSession, metaclass=ModelMetaclass):
320
320
>>> new_births = m.population['female'] * m.birth_rate
321
321
>>> # here 'new_births' has the same axes as 'births' but is a float array instead of
322
322
>>> # an integer array as 'births'.
323
- >>> # The line below will make the 'births' array to become a float array while
323
+ >>> # The line below will make the 'births' array become a float array while
324
324
>>> # it was initialized as an integer array
325
325
>>> m.births = new_births
326
326
>>> print(m.births.info)
@@ -505,7 +505,7 @@ class CheckedParameters(CheckedSession):
505
505
>>> # instantiation --> create an instance of the ModelVariables class
506
506
>>> # all variables declared without value must be set
507
507
>>> P = Parameters(variant_name='variant_1')
508
- >>> # once an instance is create , its variables can be accessed but not modified
508
+ >>> # once an instance is created , its variables can be accessed but not modified
509
509
>>> P.variant_name
510
510
'variant_1'
511
511
>>> P.variant_name = 'new_variant' # doctest: +NORMALIZE_WHITESPACE
0 commit comments