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

Add SectionItems.get(mnemonic, default, add=False) #322

Closed
kinverarity1 opened this issue Apr 29, 2020 · 0 comments
Closed

Add SectionItems.get(mnemonic, default, add=False) #322

kinverarity1 opened this issue Apr 29, 2020 · 0 comments

Comments

@kinverarity1
Copy link
Owner

Analogous to dict.get but with extra "add" kwarg.

SectionItems.get should accept strings or HeaderItem objects for the "default" arg. If it is a string, it should be converted to a HeaderItem with the appropriate mnemonic.

Always returns a HeaderItem.

If add is True, the returned value should also be appended to the SectionItems instance.

How do we handle CurveItems? Set the data attribute to all nans, with the appropriate length?

kinverarity1 added a commit that referenced this issue May 13, 2022
kinverarity1 added a commit that referenced this issue May 13, 2022
kinverarity1 added a commit that referenced this issue May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant