Skip to content

Commit 2255efe

Browse files
j-c-cgarrettwrong
authored andcommitted
replace gemmi loop.val method with updaated getter/setter syntax
1 parent ba8b5d6 commit 2255efe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/aspire/storage/starfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,10 @@ def _initialize_blocks(self):
100100
)
101101
loop_tags = gemmi_item.loop.tags
102102
# convert loop data to a list of lists
103-
# using the .val(row, col) method of gemmi's Loop class
104103
loop_data = [None] * gemmi_item.loop.length()
105104
for row in range(gemmi_item.loop.length()):
106105
loop_data[row] = [
107-
gemmi_item.loop.val(row, col)
106+
gemmi_item.loop[row, col]
108107
for col in range(gemmi_item.loop.width())
109108
]
110109
if block_has_pair:

0 commit comments

Comments
 (0)