Closed mattwthompson closed 5 months ago
The notebook I was messing around in: protomers.zip
The info in the review is probably more legible but it's here for posterity.
Could you elaborate on why 2 is a waste of time? It's what I intuited the objective to be here. Is the issue that it might return a different number of states if the input molecule happens to be in what was returned by the underlying toolkit?
I guess the issue is that if the input molecule isn't an important protomer, then when the user asks for the top n protomers and we give them those n plus the original molecule that might be a surprise (just like if they ask for the top n and we give them the top n minus the original). We need to decide what the desired behaviour is I guess.
Talked a bit at my check-in with @mattwthompson about this. To move this forward, let's do the following:
Suggestion #1 in https://github.com/openforcefield/openff-toolkit/issues/1464#issuecomment-1328660311
max_states
finds as many states as it canmax_states
just returns whatever OpenEye finds0 < max_states < len(openeye_protomers)
returnsmax_states
number of molecules