Skip to content
Discussion options

You must be logged in to vote

We were indeed able to solve the problem using an h5file, thanks!

For reference, some details:
When we take the backgrounds, they are also saved to an h5file. The name of this file is saved as a read-only parameter of the plugin. This way, any data that is taken will have a "link" to the correct background that is in use.

this is what the save function looks like:

 def save_background(self, dte):
        # Saving as viewer attribute
        ponoff = dte.get_data_from_name("Pump On/Off").data
        self.bkg_poff, self.bkg_pon = ponoff

        # Saving to h5 file for future post-processing
        h5saver = H5Saver(save_type='detector')
        h5saver.settings.child("base_name").setValu…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

rgeneaux
Mar 7, 2025
Collaborator Author

You must be logged in to vote
0 replies
Comment options

rgeneaux
Mar 25, 2025
Collaborator Author

You must be logged in to vote
2 replies
@seb5g
Comment options

@seb5g
Comment options

Answer selected by rgeneaux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants