Cashflower

Latest version: v0.7.1

Safety actively analyzes 634675 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 6

0.4.9

0.4.8

Changes in this release aim to improve runtime of the framework:

- removed `repeat` attribute of `Variable`,
- added `ConstantVariable` as a subclass of `Variable`
- results per model point are now arrays rather than data frame
- simplified `__call__` of `Variable`
- added `t_max` attribute to `Variable`
- changed `calc_direction` from string to integer

There are no changes from the user's perspective.

0.4.7

Added caching functionality to Model Point Set's `get()` function to improve runtime.

0.4.6

Refactoring of code connected to creating a graph away from `Model` class in `cashflow.py` to `create_graph()` function in `start.py`.

0.4.5

Since this version, it is possible to have model point sets that don't have all the same ids as the `main` model point set.

For example:

main = ModelPointSet(data=pd.DataFrame({
"id": [1, 2, 3],
"premium": [100, 200, 150],
}))

fund = ModelPointSet(data=pd.DataFrame({
"id": [1, 3],
"value": [10_000, 15_000],
}))


The `fund` model point set does not have `id=2`.

The model will not throw any error. Instead, it will return `None` if the user tries to read the value.


fund.get("value")


It will return `10_000` for the first model point, `None` for the second model point and `15_000` for the third model point.

0.4.4

This version has changed and simplified the relative imports.
In the previous version, the imports were according to the PyCharm's inspections but failed to execute in other environments.

To adjust your model to version 0.4.4, remove the model's name from imports, e.g.:

- `from mymodel.input import main` --> `from input import main`
- `from mymodel.settings import settings` --> `from settings import settings`

Page 4 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.