What's new
The `run` function has been updated to return more information. It now gives back a tuple with three elements:
* `output` - the main results of the model,
* `diagnostic` - information on the model's variables,
* `log` - list of messages.
How this affects existing code
Before:
python
run.py
...
if __name__ == "__main__":
output = run(settings=settings, path=os.path.dirname(__file__))
Now:
python
run.py
...
if __name__ == "__main__":
output, diagnostic, log = run(settings=settings, path=os.path.dirname(__file__))
Required updates
In version 0.10.0 and later, unpack all three elements as shown above. Otherwise, `output` will contain the entire tuple, which could cause errors in code that expects only the model results.
Reason for the change
The updated return format provides greater flexibility. It makes it easier to access and manage diagnostic information and log messages.