Closed johcarter closed 5 years ago
This is an easy fix - the optional argument to set column defaults is named defaulted_cols
https://github.com/OasisLMF/OasisLMF/blob/develop/oasislmf/utils/data.py#L25
So you just need to change the way you're calling get_dataframe
@joh It appears the wrong version of MDK is being used or installed in your local Python 3 virtual env. The exposures
subpackage was renamed to model_preparation
. As the oed.py
module path that appears in that error message is
oasislmf/exposures/oed.py
that indicates that you need to uninstall your local version of MDK, and then reinstall the current develop
version using
pip uninstall -y oasislmf && pip install -v git+ssh://git@github.com/OasisLMF/OasisLMF.git@develop#egg=oasislmf
You should actually use the branch feature/ri_deterministic_loss . This is recent branch of develop.
So the installation command is
pip uninstall -y oasislmf && pip install -v git+ssh://git@github.com/OasisLMF/OasisLMF.git@feature/ri_deterministic_loss#egg=oasislmf
user error
TypeError Traceback (most recent call last)