Skip to content

Commit

Permalink
doc for parameterized calculation setups + version update
Browse files Browse the repository at this point in the history
  • Loading branch information
msrocka committed Sep 25, 2018
1 parent 0a77275 commit 9566e2b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,35 @@ assessment method is created, calculated, and finally exported to Excel:
client.dispose(result)
Parameterized calculation setups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In order to calculate a product system with different parameter sets, you can
pass a set of parameter redefinitions directly with a calculation setup into
a calculation. With this, you do not need to modify a product system or the
parameters in a database in order to calculate it with different parameter
values:

.. code-block:: python
# ... same steps as above
setup = olca.CalculationSetup()
# ...
for something in your.parameter_data:
redef = olca.ParameterRedef()
redef.name = the_parameter_name
redef.value = the_parameter_value
# redef.context = ... you can also redefine process and LCIA method
# parameters by providing a parameter context which
# is a Ref (reference) to the respective process or
# LCIA method; with no context a global parameter is
# redefined
setup.parameter_redefs.append(redef)
As the name says, a parameter redefinition redefines the value of an existing
global, process, or LCIA method parameter.


Monte-Carlo simulations
~~~~~~~~~~~~~~~~~~~~~~~
Running Monte-Carlo simulations is similar to normal calculations but instead
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name='olca-ipc',
version='0.0.6',
version='0.0.7',
description='A Python package for calling openLCA functions from Python.',
long_description=long_description,
url='https://github.com/GreenDelta/olca-ipc.py',
Expand Down

0 comments on commit 9566e2b

Please sign in to comment.