We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e094cf9 commit 555449dCopy full SHA for 555449d
utils/fixImages/fixImages.py
@@ -17,6 +17,9 @@ def checkBonds(morphology, bondDict):
17
18
19
def zeroOutImages(morphology):
20
+ if len(morphology['image']) == 0:
21
+ for _ in morphology['position']:
22
+ morphology['image'].append([0, 0, 0])
23
for atomID, image in enumerate(morphology['image']):
24
if image != [0, 0, 0]:
25
morphology['image'][atomID] = [0, 0, 0]
0 commit comments