Closed yakutovicha closed 10 months ago
Attention: 1 lines
in your changes are missing coverage. Please review.
Comparison is base (
f403330
) 85.88% compared to head (0cd8708
) 87.12%.
Files | Patch % | Lines |
---|---|---|
aiidalab_widgets_base/viewers.py | 98.33% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
[ ] Consider using Enum for the dropdown widgets.
This item is not yet implemented, but I think we can discuss it first during today's meeting and then decide what to do.
The rest is ready, please review.
- better to add a test for the
_compute_bonds
function.
This function is executed during text, you can check the codecov report, for instance.
- There is a variable called
uuid
, which is theUnique identifier for the representation.
. At first glance, I mixed it with the AiiDA node uuid. I suggest using another name, e.g.style_id
.
Done in https://github.com/aiidalab/aiidalab-widgets-base/pull/535/commits/289139c9c49a32a6899bc6adb5668c30f9094a3b, thanks!
I guess test failed because of dockerhub rate limit, https://github.com/aiidalab/aiidalab-widgets-base/pull/539 should fix it.
@cpignedoli please comment on where all the numbers are coming from.
Hi @yakutovicha, Thanks for the update! I am still worried about the test on the bond.
This function is executed during text, you can check the codecov report, for instance.
It's executed, but the result isn't verified. I would suggest running this function
and checking the result bonds
using a simple structure as input, e.g., H2O. See my comment on the math to calculate the intermediate_point
.
I would suggest running this function and checking the result bonds using a simple structure as input, e.g., H2O.
@unkcpz @yakutovicha I moved the if
outside the for
loop, which makes the code ~1 time faster. Please review.
Hi @unkcpz, thanks for the review. I made the changes as you suggested. Please have another look.
fixes #48 supercedes #377
In nglview if a system is too big bonds will not be computed. I bypass the "ball+stick" representation defining it as "spacefill" plus shapes that are computed via ase connectivity matrix.
I would not draw also the atom spheres through shapes otherwise it would be a problem to pick atoms with mouse selection
Despite I tested it also with ~1000 atoms it is meant to work on smaller system sizes.
The image below is outdated, just the "ball+stick" representation is needed to produce the image
To Do: