Skip to content

Refactor HduCategory #53

Description

@kabasset

Instead of the trits-based selection, variable-size types could be used in the form of enums wrapped in some Selector decorator which would provide the Unconstrained case and the operators.

The following enums would be added:

enum HduType { Primary, Image, Bintable };
enum ImageType { Int, Float }; // Deprecated with Compress
enum CompressionType { None, Lossless, Lossy };
enum DataBlocks { None, Single, Multiple }; // Or a long?
enum HduStatus { Untouched, Read, Edited, Created };

They could be used standalone in subsequent versions, too, e.g. Hdu::type() -> HduType.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

breakingWould break current APIenhancementNew feature or request related to an existing service

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions