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

save / load #68

Merged
merged 4 commits into from
Sep 5, 2024
Merged

save / load #68

merged 4 commits into from
Sep 5, 2024

Conversation

dvezinet
Copy link
Collaborator

@dvezinet dvezinet commented Sep 5, 2024

Main changes:

  • coll.save() operational
  • coll = sp.load() operational
  • plot_spectral_fit_input_validity() better:
    - better handling of keyY
    - plot_text=bool implemented (but slow for some reason)

Issues:

Fixes, in devel, issue #64

Example:

import spectrally as sp

coll, dax, dout = sp.tutorials.main(data='ebit', chain=False, binning=False)

coll.save()
Saved in:
	C:\Users\dvezinet\Documents\Projects\spectrally\SpectralFit_name_dvezinet_20240905-170906.npz

coll2 = sp.load('C:/Users/dvezinet/Documents/Projects/spectrally/SpectralFit_name_dvezinet_20240905-170906.npz')
Loaded from
	C:/Users/dvezinet/Documents/Projects/spectrally/SpectralFit_name_dvezinet_20240905-170906.npz

coll == coll2
True

coll is coll2
False

@dvezinet dvezinet changed the title Issue064 save save / load Sep 5, 2024
@dvezinet dvezinet merged commit 3ed5960 into devel Sep 5, 2024
9 checks passed
@dvezinet dvezinet deleted the Issue064_save branch September 5, 2024 20:56
@dvezinet dvezinet mentioned this pull request Sep 5, 2024
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.

1 participant