Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: DataHandler - allow nested figures and arrays to be saved #215

Merged
merged 7 commits into from
Jun 11, 2024

Conversation

nulinspiratie
Copy link
Contributor

This PR enables the data handler to also save figures and arrays when they are nested within a dict.

Example:

data = {"q1": {"trace": np.array([1, 2, 3]), "fig": plt.figure()}}
data_handler.save_data(data, "my_data")

Afterwards, the data will be stored in: q1.trace.npy and q1.fig.png

Copy link

github-actions bot commented May 18, 2024

Unit Test Results

389 tests   385 ✔️  44s ⏱️
    1 suites      4 💤
    1 files        0

Results for commit 9310577.

♻️ This comment has been updated with latest results.

@nulinspiratie nulinspiratie merged commit 38c0290 into main Jun 11, 2024
2 checks passed
@nulinspiratie nulinspiratie deleted the feat/datahandler-nested-save branch June 11, 2024 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants