Skip to content

Commit

Permalink
Starting an ARGS_SPEC for the decay function.
Browse files Browse the repository at this point in the history
The decay function parameter is described as a non-user-facing parameter
that may need to be experimented with by the science teams.  I interpret
this as that it should therefore be exposed until further notice.
RE:natcap#722
  • Loading branch information
phargogh committed Nov 17, 2021
1 parent 46ab29f commit a9910cf
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/natcap/invest/urban_nature_access.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,20 @@
'units': u.m,
'expression': "value > 0",
'about': "", # TODO, will know more about this when I implement.
},
'decay_function': {
'name': 'decay function',
'type': 'option_string',
'required': False,
'options': [
'dichotomy',
# "exponential" is more consistent with other InVEST models'
# terminology. "Power function" is used in the design doc.
'exponential',
'gaussian',
'density',
],
'about': '', # TODO
}
}
}
Expand Down Expand Up @@ -198,6 +212,8 @@ def execute(args):
target_path_list=[file_registry['aligned_population']],
task_name='Resample population to LULC resolution')



graph.close()
graph.join()
LOGGER.info('Finished Urban Nature Access Model')
Expand Down

0 comments on commit a9910cf

Please sign in to comment.