-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cloud saves were previously required, which meant you needed to setup the kachery-cloud connection (setting up account and registering your machine) and so this allows for skipping this step for anyone who wants to pickle their plots to have for reference, but doesn't want to have to setup kachery-cloud. resolves #11
- Loading branch information
1 parent
a7b6433
commit 0184921
Showing
2 changed files
with
38 additions
and
6 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
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,12 @@ | ||
from SimLogger import SimLogger, FigLogger | ||
|
||
|
||
def test_graph_save(): | ||
x = [0, 1, 2, 3] | ||
y = [1, 2, 3, 4] | ||
simTag = "testing-simTag" | ||
objTag = "testing-graph" | ||
FigLogger.createPlot(simTag, objTag, x, y, cloudSave=False) | ||
loadedFig = SimLogger.getObj(simTag, objTag) | ||
assert list(loadedFig["data"][0]["x"]) == x | ||
assert list(loadedFig["data"][0]["y"]) == y |