Jashcraf / poke

Poke (pronounced poh-keh) is a Polarization Ray Tracing and Gaussian Beamlet module for Python
BSD 3-Clause "New" or "Revised" License
33 stars 7 forks source link

2.8 Permanent File Structure for Saving Rayfronts #45

Closed Jashcraf closed 1 year ago

Jashcraf commented 1 year ago

As of v1.0 we save Rayfronts as pickled objects in Python, but this has some security concerns. Our industry is quite comfortable with .fits files, can we use these even though we aren't strictly saving images?

Jashcraf commented 1 year ago

So you can't save an object as a fits file, if we go this route we will have to strip the raybundle of data and then store it in the fits file

Jashcraf commented 1 year ago

This actually begs the question of a slightly more intelligent structure of the Rayfront class to make it easier to save.

Jashcraf commented 1 year ago

This was done with the msgpack function and added, closing this issue