@@ -300,14 +300,14 @@ class CheckedSession(Session, AbstractCheckedSession, metaclass=ModelMetaclass):
300300 time [11]: 2020 2021 2022 ... 2028 2029 2030
301301 dtype: float64
302302 memory used: 1.89 Kb
303- >>> # and the line below will crashes
303+ >>> # and the line below will crash
304304 >>> m.births[2025] = new_births # doctest: +NORMALIZE_WHITESPACE
305305 Traceback (most recent call last):
306306 ...
307307 ValueError: Value {time} axis is not present in target subset {age, gender}.
308308 A value can only have the same axes or fewer axes than the subset being targeted
309309 >>> # 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
311311 >>> m.mortality_rate = full((AGE, GENDER, TIME), fill_value=sequence(AGE, inc=0.02)) \
312312 # doctest: +NORMALIZE_WHITESPACE
313313 Traceback (most recent call last):
@@ -320,7 +320,7 @@ class CheckedSession(Session, AbstractCheckedSession, metaclass=ModelMetaclass):
320320 >>> new_births = m.population['female'] * m.birth_rate
321321 >>> # here 'new_births' has the same axes as 'births' but is a float array instead of
322322 >>> # 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
324324 >>> # it was initialized as an integer array
325325 >>> m.births = new_births
326326 >>> print(m.births.info)
@@ -505,7 +505,7 @@ class CheckedParameters(CheckedSession):
505505 >>> # instantiation --> create an instance of the ModelVariables class
506506 >>> # all variables declared without value must be set
507507 >>> 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
509509 >>> P.variant_name
510510 'variant_1'
511511 >>> P.variant_name = 'new_variant' # doctest: +NORMALIZE_WHITESPACE
0 commit comments