Use functions for saving flow solutions #566
Labels
Type: improvement
Better way of doing something
Zone: export & visualisation
How data leaves model & is visualised
What and Why
The current implementation for saving flow solutions (see code below) in the
save_solution_to_file
function uses a block forDataFrames.flatten
andDataFrames.transform
.After #564, there is a similar function defined for storage (see code below).
Since this function are added for the storage, the first block code can be simplified further by also using this function. For that purpose, the function may need to be modified a bit.
Possible Drawbacks
It will make the code cleaner, but that may not save many codes (since some conditions would need to be added to the functions and currently there is only this part that needs to be refactored).
It may lose or improve readability.
Related Issues
No response
The text was updated successfully, but these errors were encountered: