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

Introduce CustomIDArray to access Arrays with contact IDs #306

Closed
wants to merge 4 commits into from

Conversation

fhagemann
Copy link
Collaborator

@fhagemann fhagemann commented Jun 16, 2022

Just putting it out here, probably not the most elegant solution to fix #288, and I am not really sure whether we want to do it like this, so feel free to reject this PR. The idea of this PR is that arrays can be accessed with custom indices, e.g.
sim.weighting_potentials[100] to get the WeightingPotential of the contact with ID 100.

There are still no checks if mutliple contacts in a config file have the same contact ID,
and by accessing elements with custom indices, I rely on findfirst which might not be the most efficient way.

@fhagemann
Copy link
Collaborator Author

Closed because of overkill

@fhagemann fhagemann closed this Jul 4, 2022
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.

SSD cannot handle arbitrary contact IDs
1 participant