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

DM-25327: Add new PackagesFormatter #260

Merged
merged 4 commits into from Jun 13, 2020
Merged

DM-25327: Add new PackagesFormatter #260

merged 4 commits into from Jun 13, 2020

Conversation

timj
Copy link
Member

@timj timj commented Jun 11, 2020

This formatter is a specialist formatter for lsst.base.Packages and control of the file format for writing is handled by a writeParameter in the configuration. This is acting as a demonstrator that such a scheme will work and required some changes to Formatter base class to allow Formatter.extension to be an instance property rather than a class property.

Currently this formatter does not stream to/from bytes because Packages can't do that yet (it would be easy to add).

Also updates the FitsExposureFormatter to declare that .fits.gz is understood.

Depends on lsst/daf_butler#309

@timj timj requested a review from TallJimbo June 11, 2020 18:59
python/lsst/obs/base/packagesFormatter.py Outdated Show resolved Hide resolved
python/lsst/obs/base/packagesFormatter.py Outdated Show resolved Hide resolved
python/lsst/obs/base/packagesFormatter.py Outdated Show resolved Hide resolved
@timj timj force-pushed the tickets/DM-25327 branch 2 times, most recently from 83930f1 to 6c2d587 Compare June 12, 2020 21:29
This formatter has a configurable write parameter to control
yaml vs pickle format.
@timj timj merged commit 45e101b into master Jun 13, 2020
@timj timj deleted the tickets/DM-25327 branch June 13, 2020 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants