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

added value error if pka not provided for acidic or basic particles #24

Merged
merged 11 commits into from
Apr 22, 2024

Conversation

mariusaarsten
Copy link
Contributor

@mariusaarsten mariusaarsten commented Mar 13, 2024

Fixes #6

@pm-blanco pm-blanco added the bug Something isn't working label Apr 2, 2024
@mariusaarsten
Copy link
Contributor Author

@pm-blanco I have added a very simple unit test now. I see there are some conflicting files with the parameters, I don't think I have touched them, but should I just change them to what they are in the main fork?

@pm-blanco
Copy link
Collaborator

@mariusaarsten yes, you will need to address the merge conflict:

  • for Blanco2020.txt and Lunkad2021.txt just keep the version in the main fork
  • for Makefile you need to merge it so it also includes the new test you added.

@pm-blanco
Copy link
Collaborator

@mariusaarsten I think the CI is now breaking actually due to a broken setup in the peptide files, for example in Lunkad2020.txt:

{"object_type":"particle", "name": "D", "acidity": "acidic", "sigma": {"value":0.35, "units":"nm"}, "epsilon":{"value":1, "units":"reduced_energy"}}

an acidity is given but no pKa value is provided because it is later loaded from the pKa set, which now raises a ValueError with your new implementation. I think the solution is simple: just remove the acidity from all particles in the peptide files.

@pm-blanco
Copy link
Collaborator

@mariusaarsten I think the problem is that you need to change diameter to sigma in Blanco2020.txt

Copy link
Collaborator

@pm-blanco pm-blanco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me now. Thank you for your work @mariusaarsten

@pm-blanco pm-blanco merged commit 246f569 into pyMBE-dev:main Apr 22, 2024
1 check passed
@pm-blanco pm-blanco mentioned this pull request May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ci-improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Users can define particles with acidic or basic properties without a pKa
2 participants