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

Update ApRESDefs.py #29

Closed

Conversation

Elizabethcase
Copy link
Contributor

instead of a remote_load arg, always try remotely loading if local file load fails using a try-except statement. This can be propagated through all classes to potentially remove the need for the remote_load arg. I find it very easy to forget that default remote_load=False means that the code will fail with a type error.

instead of a remote_load arg, always try remotely loading if local file load fails using a try-except statement. This can be propagated through all classes to potentially remove the need for the remote_load arg. I find it very easy to forget that default remote_load=False means that the code will fail with a type error.
replaced datafile with self.Filename as intended
I think this should fix the datafile reference if it doesn't exist
just removed the datafile check, which is likely unnecessary since all bad filepaths seem to cause an error
@jkingslake
Copy link
Member

This sounds like a good idea. Thanks for working on it.

It does seem like we may run into conflicts as I continue working on #20, as both involve changes to ApRESDefs.py, but I am not really sure how to avoid that. Any thoughts?

@jkingslake
Copy link
Member

@jkingslake
Copy link
Member

I just merged a PR that should do what this was aiming to do: #53
Thanks again for the idea to do this!!

Let me know if this isnt working as you originally envisioned or you think it can be improved and we can work on improving it! :-)

@jkingslake jkingslake closed this Oct 23, 2024
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

Successfully merging this pull request may close these issues.

2 participants