8000 Remove Datamodel.read and write · Issue #417 · spacetelescope/stdatamodels · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Remove Datamodel.read and write #417

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

Open
9149
braingram opened this issue Feb 23, 2025 · 0 comments
Open

Remove Datamodel.read and write #417

braingram opened this issue Feb 23, 2025 · 0 comments

Comments

@braingram
Copy link
Collaborator

These methods mention that they aren't to be used and are only for astropy.registry compatibility.

# --------------------------------------------------------
# These two method aliases are here for astropy.registry
# compatibility and should not be called directly
# --------------------------------------------------------
read = __init__
def write(self, path, *args, **kwargs):
self.save(path, *args, **kwargs)

I don't believe this is needed after spacetelescope/jwst#6179 (which removed the code that registered the datamodels with astropy).

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

No branches or pull requests

1 participant
0