-
Notifications
You must be signed in to change notification settings - Fork 0
Addition of connectivity, radii and colors. #2
Conversation
for more information, see https://pre-commit.ci
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2 +/- ##
============================================
- Coverage 100.00% 88.75% -11.25%
============================================
Files 3 4 +1
Lines 93 160 +67
============================================
+ Hits 93 142 +49
- Misses 0 18 +18 ☔ View full report in Codecov by Sentry. |
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.
Looks good! There is only one change, where I think the conversion from graph to list should be handled by a converter instead of the inside the post init
if self.connectivity is None: | ||
ase_bond_calculator = ASEComputeBonds() | ||
self.connectivity = ase_bond_calculator.build_graph(self.to_atoms()) | ||
self.connectivity = ase_bond_calculator.get_bonds(self.connectivity) |
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.
Could this be a converter instead of being part of the __post_init__
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.
This is not simply done as you need an ase.Atoms
-object to calculate the bonds. And it is not possible to convert the frame
to an ase.Atoms
while the initialization is still in progess.
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.
Looks good
No description provided.