-
Notifications
You must be signed in to change notification settings - Fork 94
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
AtomArray Direct Loading #751
base: main
Are you sure you want to change the base?
Conversation
LGTM, some discussion around overall implementation in the issue |
pass | ||
|
||
def _validate_structure(self, array: AtomArray): | ||
# TODO: implement entity ID, sec_struct for PDB files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A complete implementation should handle these fields as well by setting defaults. The assumption here is that the Array is being passed and the file is no longer available. I letft it unimplemented pending a good solution
@@ -65,6 +64,12 @@ def __init__(self, file_path: Union[str, Path, io.BytesIO]): | |||
self._frames_collection: str | None | |||
self._entity_type = EntityType.MOLECULE | |||
|
|||
|
|||
@classmethod |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Preferred entry point is now a class method instead of over loading the init/ Much cleaner
from ..base import EntityType | ||
|
||
|
||
class Array(Molecule): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the. logic is in a new Array Class analogous to the others. This has to do a lot less work though!
Much simplified PR that is narrower in scope and follows the suggestions from the issue thread. Namely:
|
After our discussion this morning I think we came to the conclusion that a new distinct |
Hey Brady, I'll write up my notes but we will need a way to handle and validate the inputs including for Array. So I would merge this and I can reorganize all of the inputs as a follow up |
2e46878
to
9aeac79
Compare
WIP RE: issue #750
Pencilling out a solution before getting too deep.