Skip to content

Releases: acturtle/cashflower

v0.9.2

18 Jan 09:24
ef568d9
Compare
Choose a tag to compare

Updates:

  • The log file name has been changed from <timestamp>_log.txt to <timestamp>.log.
  • Logs will now be saved even if there is an error during execution.

v0.9.1

25 Nov 13:44
768f1d4
Compare
Choose a tag to compare

This version introduces significant improvements to make defining model point sets easier and more flexible:

  • No need to define model point sets in input.py - if no model point sets are defined, a single calculation will be performed.
  • Flexible naming - model point set no longer needs to be named main. Instead, for multiple sets, exactly one must have the main parameter set to True (e.g., ModelPointSet(main=True)).
  • Simplified ID_COLUMN - the ID_COLUMN setting has been removed. Use the id_column parameter directly in the ModelPointSet class (e.g., ModelPointSet(id_column=...)).
  • Updated template - the initial template now includes helpful comments to make getting started easier.

These changes reduce complexity.

v0.8.5

29 Oct 13:32
53254dc
Compare
Choose a tag to compare

This release introduces checks to ensure the settings are correct. It verifies that all settings are properly defined and that the output variables correspond to existing variables in the model.

v0.8.4

24 Oct 17:41
68b19c9
Compare
Choose a tag to compare

In this version, we've changed the name of the setting:

OUTPUT_COLUMNS is now called OUTPUT_VARIABLES.

We've also updated the default value:

From [] (empty list) to None.

Rationale:

In the model, we use the word "variable" (like with the @variable() decorator). While "column" relates to table formats, it doesn’t cover all the ways we can show results. Changing the name to OUTPUT_VARIABLES helps keep things consistent throughout the model.

For the default value, using OUTPUT_VARIABLES=None is clearer because it means that no specific set of variables is chosen, so all variables will be included in the output. On the other hand, OUTPUT_VARIABLES=[] might suggest that no variables should be output at all, which could lead to confusion or extra checks in your code.

v0.8.3

21 Oct 13:20
8216a2d
Compare
Choose a tag to compare

Bug fix

v0.8.2

19 Oct 18:33
51ef45e
Compare
Choose a tag to compare

Fixed a bug related to the OUTPUT_COLUMNS setting.

v0.8.1

16 Oct 13:17
887f52d
Compare
Choose a tag to compare

The default settings have been updated. Now, only the main output file is saved by default, while the log and diagnostic files are disabled. Users can adjust these settings in the configuration file.

After:

settings = {
    # ...
    "SAVE_DIAGNOSTIC": False,
    "SAVE_LOG": False,
    "SAVE_OUTPUT": True,
    # ...
}

Before:

settings = {
    # ...
    "SAVE_DIAGNOSTIC": True,
    "SAVE_LOG": True,
    "SAVE_OUTPUT": True,
    # ...
}

This change focuses on the main output file, as the log and diagnostic files are helpful but not essential for cash flow modelling. By simplifying the default settings, the basic process becomes tidier.

v0.8.0

10 Oct 13:07
2754cd6
Compare
Choose a tag to compare

Important: This version is not backward-compatible.


In this version, we've simplified the settings for grouping results. The AGGREGATE and GROUP_BY_COLUMN settings have been removed and replaced with GROUP_BY.

Here’s how the old settings map to the new one:

1. Results aggregated for the whole portfolio

Before:

AGGREGATE = True
GROUP_BY_COLUMN = None

After:

GROUP_BY = None

2. Results grouped by an attribute (e.g. product)

Before:

AGGREGATE = True
GROUP_BY_COLUMN = "product"

After:

GROUP_BY = "product"

3. Individual results (per model point)

Before:

AGGREGATE = False
GROUP_BY_COLUMN = None

After:

GROUP_BY = "id"

v0.7.3

10 Sep 15:18
8612428
Compare
Choose a tag to compare

Bug fixes:

  • Fixed error in result aggregation - resolved an issue where a shape mismatch could occur when calculating results if only some variables were included in the output. The multiplier is now correctly applied only to variables listed in OUTPUT_COLUMNS, preventing this error.

v0.7.2

23 Aug 10:59
dd947fd
Compare
Choose a tag to compare

Updates:

  • removed unnecessary data transposing for increased efficiency,
  • added a description of the release process to the documentation,
  • updated to numpy 2.0.1 for better compatibility,
  • made minor documentation fixes.