-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(system): Added new method to save the system to a given folder. (#…
…23) List of changes: - Created a new method `.save` that saves all the content of the system (.json + time series) to a desired folder, - Save method can archive the folder to enable easy sharing of the system, - Added testing to validate that save in fact creates the folder and that when we zip it we delete that folder. - Closed backup connection from `time_series_metadata` Closes #10
- Loading branch information
Showing
4 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# How to save the system | ||
|
||
## Exporting the entire contents of the system | ||
|
||
If the user wants to create a folder that contains all the information of the | ||
system `infrasys` provides a simple method `system.save("my_folder")` that | ||
creates a folder (if it does not exist) and save all the contents of the | ||
system including the `system.to_json()` and the time series arrow files and | ||
sqlite. | ||
|
||
To archive the system into a zip file, the user can use `system.save("my_folder", | ||
zip=True)`. This will create a zip folder of the contents of `my_folder` and | ||
delete the folder once the archive is done. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters