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

Define null species type #76

Closed
DavidSagan opened this issue Oct 2, 2024 · 4 comments
Closed

Define null species type #76

DavidSagan opened this issue Oct 2, 2024 · 4 comments
Assignees
Labels
Core Important for package functionality

Comments

@DavidSagan
Copy link
Member

A species type called Null would be useful as a place holder. This species should throw an error if used in any function like for the mass, etc. (or should NaN be returned?)

@DavidSagan DavidSagan added the Core Important for package functionality label Nov 4, 2024
@rot4te
Copy link
Collaborator

rot4te commented Dec 12, 2024

There's currently a species with 'variety' field Null, with a special constructor null_species = Species().
I'm not sure if it behaves entirely the way you'd like it to, let me know

@DavidSagan
Copy link
Member Author

Besides Species() being a constructor for the null species, it would be convenient if Species("Null") also was accepted.

@DavidSagan
Copy link
Member Author

It would be convenient if full_name(Species()) returned "Null" as the name.

@DavidSagan DavidSagan self-assigned this Jan 7, 2025
@DavidSagan
Copy link
Member Author

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Important for package functionality
Projects
None yet
Development

No branches or pull requests

2 participants