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 0b00baa commit 54955e4Copy full SHA for 54955e4
src/ursina_proteins/protein.py
@@ -241,11 +241,11 @@ def compute_helices_and_coils_meshes(
241
for segment_type, segments in chain_segments.items():
242
for start, end in segments:
243
# Get coordinates of the segment's carbon alpha atoms
244
- coords = []
245
- for i in range(start, end + 1):
246
- coord = carbon_alpha_coords.get(i)
247
- if coord is not None:
248
- coords.append(coord)
+ coords = [
+ coord
+ for i in range(start, end + 1)
+ if (coord := carbon_alpha_coords.get(i)) is not None
+ ]
249
250
tris_start = len(verts[segment_type])
251
0 commit comments