-
Notifications
You must be signed in to change notification settings - Fork 883
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 get_string->get_str
alias for Poscar
#3763
add get_string->get_str
alias for Poscar
#3763
Conversation
WalkthroughA new method named Changes
Recent Review DetailsConfiguration used: CodeRabbit UI Files selected for processing (1)
Files skipped from review due to trivial changes (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configration File (
|
@janosh Can we please for the love of god keep backward compatibility when it is trivial to do so? There is no reason for this backward incompatibility to exist. |
@timurbazhirov apologies for the trouble. are you using another package that depends on @shyuep you green-lighted this change last year including the deprecation period. looks like monty@v2024.4.16 didn't keep backwards compatibility as deserialization is failing across the code base. |
@janosh I green lighted the change for sure. But I was under the impression the deprecation period is longer? The Monty issue has nothing to do with deprecation but a bug introduced that were not caught by existing tests. Those I accept. |
sorry about that, i probably could have been clearer. |
Incidentally, keep your comments related to the existing bug report and package. Arguing by using equivalence on other packages is petty. If you have a problem with a bug on Monty, feel free to comment over at the Monty Issues. |
re this PR: adding back |
Thank you. This seemed like a benign workaround to avoid having to handle the function signature(s) when using py3.8-compatible earlier version(s) like in https://github.com/Exabyte-io/made/blob/main/src/py/mat3ra/made/tools/convert.py#L121. For production workloads, it's often good to have compatibility with earlier versions for longer. Not sure what you mean by:
but either way, feel free to close this PR if you don't like it. BTW - are test failures related to the change in this PR, or caused by something else? |
No, they aren't. An issue with a dependency. 😅 (I also asked about this earlier today) |
I merged. Thanks for reporting this. My view is that this is a trivial thing to support and there is no reason why we can't keep the |
I don't quite understand why the test suite is installing monty 2024.4.*. The pinned dependency says monty==2024.2.26 |
@Andrew-S-Rosen Can you investigate the serialization issue? Seems related to the latest msonable changes. |
@shyuep: I'm unavailable until the weekend so can't look at it until then, unfortunately (I'm just posting from phone). I can't see the test fail from GitHub Mobile but my guess is it's linked to materialsvirtuallab/monty#654. |
Ah, I see the fail now. @matthewcarbone: at first glance, this looks similar to materialsvirtuallab/monty#659 (just as a heads up!). |
@Andrew-S-Rosen this one can't be my fault right? monty from February is well before I broke MSONable 😁 Happy to help look into this if you'd like though! |
@matthewcarbone There are two fails here:
|
@shyuep I absolutely am going to fix this and add new test cases to try and deal with it, but why was monty 2024.4 released when we knew it had this bug? If you're on a schedule here we should simply roll back my changes (which only affected |
@matthewcarbone I didn't know the bug existed when 2024.4.* was released. I will roll back the changes for now. |
@shyuep you beat me to it! I was just about to open a PR to do this. Thanks! In the meantime I'll work on implementing the changes back in monty in a backwards compatible way. |
@shyuep @janosh the issue with the wrong install version of monty might be in Line 32 in 7f96ef2
Looks like the version there is different than that pinned in Btw a new version of monty which rolls back my bug was just released and should fix this issue. Apologies! |
You generally do not pin setup.py. The CI should install from the requirements.txt file. For some reason, it is not. |
Could be this maybe? pymatgen/.github/workflows/test.yml Line 83 in 7f96ef2
This would appear to install the package itself likely from That said, why would the CI install requirements from a different file than what's being deployed? That could lead to bugs due to dependency mismatches, right? |
I have no idea what uv is though 😁 |
Just a software to make pip install faster. (https://pypi.org/project/uv/) |
get_string->get_str
alias for Poscar
Summary
Minor changes:
get_string
alias forget_str
function in Poscar class for convenience/compatibility purposes with earlier implementation(s)Major changes:
Checklist
and
Summary by CodeRabbit
get_string
for enhanced usability in accessing string representations.