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

Fix to load the swiftsim snapshot by removing the unused "RuntimePars" #4990

Closed
wants to merge 1 commit into from

Conversation

weiguangcui
Copy link

PR Summary

PR Checklist

  • New features are documented, with docstrings and narrative docs
  • Adds a test for any bugs fixed. Adds tests for new features.

@neutrinoceros
Copy link
Member

Hi. In #4921 we tried to make sure this bit of code stayed backward compatible and improved forward compatibility. As far as I can tell what you're proposing here is to rip off the backward compatibility layer. Can you explain exactly what is not currently working with the main branch yet ?

@neutrinoceros
Copy link
Member

neutrinoceros commented Sep 13, 2024

(granted #4921 is not released yet so I don't expect yt 4.3.1 to work, but the dev branch should)

@weiguangcui
Copy link
Author

Hi. In #4921 we tried to make sure this bit of code stayed backward compatible and improved forward compatibility. As far as I can tell what you're proposing here is to rip off the backward compatibility layer. Can you explain exactly what is not currently working with the main branch yet ?

Hi, sorry for forgetting to reply to this question. Yes, the new swift snapshot doesn't include that ["RuntimePars"] in its snapshot anymore. So it is removed, as such the "periodic" parameter is reading from another place: periodic = int(parameters["InitialConditions:periodic"])

@neutrinoceros
Copy link
Member

neutrinoceros commented Sep 23, 2024

@weiguangcui I still expect you shouldn't have any issue with the development branch. Have you tried installing it ?

python -m pip install git+https://github.com/yt-project/yt.git

If I'm right then your proposed patch is unnecessary. And if something else still needs fixing we need to take care of backward compatibility too, which is currently missing from your approach.

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