Skip to content

Commit 555449d

Browse files
committed
Sorted fixImages in case there is no image tag in the xml
1 parent e094cf9 commit 555449d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

utils/fixImages/fixImages.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ def checkBonds(morphology, bondDict):
1717

1818

1919
def zeroOutImages(morphology):
20+
if len(morphology['image']) == 0:
21+
for _ in morphology['position']:
22+
morphology['image'].append([0, 0, 0])
2023
for atomID, image in enumerate(morphology['image']):
2124
if image != [0, 0, 0]:
2225
morphology['image'][atomID] = [0, 0, 0]

0 commit comments

Comments
 (0)