Skip to content

Commit

Permalink
Fix model.rst
Browse files Browse the repository at this point in the history
Move changes to versions_0_11.rst.inc
  • Loading branch information
benjello committed Nov 16, 2015
1 parent 8535c9e commit 687a48f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 0 additions & 4 deletions doc/usersguide/source/changes/version_0_10_5.rst.inc

This file was deleted.

3 changes: 3 additions & 0 deletions doc/usersguide/source/changes/version_0_11.rst.inc
@@ -1,6 +1,9 @@
New features
------------

* A default value can be assigned to fields that are not present
in the initial data (see the :ref:`miscellaneous section <model>` for details).

* added a feature (see the :ref:`miscellaneous section <misc>` for details).

* added another feature.
Expand Down
9 changes: 5 additions & 4 deletions doc/usersguide/source/model.rst
Expand Up @@ -219,10 +219,11 @@ However, in practice, there are often some fields which are not present in the
input file. They will need to be calculated later by the model, and you need to
tell LIAM2 that the field is missing, by using `initialdata: False` in the
definition for that field (see the *agegroup* variable in the example below).
The fields that are not present in the initial file can also be initialized to
a specific value by using the `default: some_default_value`. If not present they
are initialized to the default of the field type which are False for boolean,
-1 for integer and numpy nan for float (see the *alive* variable in the example below).

The fields that are not present in the initial file or the fields associated with newly created members
of any entity can also be initialized to a specific value by using the `default: some_default_value`.
If not present they are initialized to the default of the field type which are False for boolean and
0 for integer and float (see the *alive* variable in the example below).

.. _fields_output:

Expand Down

0 comments on commit 687a48f

Please sign in to comment.