acturtle / cashflower

An open-source Python framework for actuarial cash flow models
https://cashflower.acturtle.com
MIT License
38 stars 9 forks source link

start() <--> run() #336

Closed zchmielewska closed 11 months ago

zchmielewska commented 11 months ago

In a script called run.py, we have a function called start().

Perhaps for simplicity, the function should be called run() or the script should be called start.py.

It would be good to implement this in v0.6.0 which anyway will bring changed to the template.

zchmielewska commented 11 months ago

It's also possible to now have a separate run.py script but invoke the start() function from the e.g. model.py.

Settings also don't have to be in a separate script.

zchmielewska commented 11 months ago

I think it's the best to indeed rename start() to run() and keep 4 scripts as they are because they separate the logic.

zchmielewska commented 11 months ago

Implemented in b6ce86278e839182fa0a85111b922552a20c9b84