Replace the pyMBE Pandas dataframe for a canonical pyMBE database#147
Open
pm-blanco wants to merge 58 commits intopyMBE-dev:mainfrom
Open
Replace the pyMBE Pandas dataframe for a canonical pyMBE database#147pm-blanco wants to merge 58 commits intopyMBE-dev:mainfrom
pm-blanco wants to merge 58 commits intopyMBE-dev:mainfrom
Conversation
This was
linked to
issues
Feb 10, 2026
1234somesh
reviewed
Mar 4, 2026
1234somesh
reviewed
Mar 4, 2026
pinedaps
requested changes
Mar 6, 2026
1234somesh
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
reviewed
Mar 6, 2026
pinedaps
requested changes
Mar 6, 2026
1234somesh
reviewed
Mar 8, 2026
1234somesh
reviewed
Mar 8, 2026
1234somesh
requested changes
Mar 8, 2026
Contributor
1234somesh
left a comment
There was a problem hiding this comment.
This massive PR brings systematic and safe handling of dataframe. Now mananger.py handles creation of templates and instances classes whenever define_* and create_* of any pyMBE entity, while enforcing validation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #146, #123 and #18 :
Added
pmb.get_templates_df,pmb.get_instances_dfandpmb.get_reactions_df.pmb.save_databaseandpmb.load_database.pmb.define_particle_statesandpmb.define_monoprototic_particle_states.lib/handy_functionsto define residue and particle templates for aminoacids en peptides .and residues:define_protein_AA_particles,define_protein_AA_residuesanddefine_peptide_AA_residues.Changed
define_peptideanddefine_protein. Those definitions are now exposed to the user.Fixed
get_radius_mapwhen thedimensionlessargument was triggered.get_particle_id_map,calculate_HH,calculate_net_charge,center_object_in_simulation_boxnow support all template types in pyMBE, including hydrogels. Some of these methods have been renamed to expose directly in the API this change in behavior.Removed
add_bonds_to_espressohas been removed from the API. pyMBE now adds bonds internally to ESPResSo when molecule instances are created into ESPResSo.lattice_builder.ipynbhas been removed because its content is redundant with sample scriptbuild_hydrogel.py.Documentation
Tests