Closed superstar54 closed 1 month ago
The failed test is related to the query of the Crystallography Open Database, thus it is not related to this PR.
Just wondering, is this a bug that should be reported upstream? I.e. is this an nglview problem?
Just wondering, is this a bug that should be reported upstream? I.e. is this an nglview problem?
I am not sure if it is a bug or not. The problem is that we call the center
method after drawing the atoms and bonds. If we use the default setting, the nglview shows the correct atoms, but the view is not centered.
Anyway, I opened an issue and waited for other's options.
Attention: Patch coverage is 25.00000%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 83.43%. Comparing base (
152c2bb
) to head (3ee8fcb
). Report is 1 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
aiidalab_widgets_base/viewers.py | 25.00% | 3 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Fix #633 . In the case of a structure with only one atom, the structure viewer shows a black sphere. As shown below:
This could be because of the overlap between the atoms and the control of the viewer. This PR implements a quick solution by shifting the center of the control in z direction by 1. Now the viewer shows: