@@ -159,15 +159,15 @@ def read_in_memory(self, label_column_name: str = None):
159
159
node_occ .append (occ )
160
160
node_oxidation .append (oxi )
161
161
162
- self .node_attributes = node_occ
163
- self .node_oxidation = node_oxidation
164
- self .node_number = [np .argmax (x , axis = - 1 ) for x in node_occ ] # Only takes maximum occupation here!!!
165
- self .node_symbol = node_symbol
166
- self .node_coordinates = node_coordinates
167
- self .graph_lattice_matrix = graph_lattice_matrix
168
- self .graph_abc = graph_abc
169
- self .graph_charge = graph_charge
170
- self .graph_volume = graph_volume
162
+ self .assign_property ( " node_attributes" , node_occ )
163
+ self .assign_property ( " node_oxidation" , node_oxidation )
164
+ self .assign_property ( " node_number" , [np .argmax (x , axis = - 1 ) for x in node_occ ]) # Only takes maximum occupation here!!!
165
+ self .assign_property ( " node_symbol" , node_symbol )
166
+ self .assign_property ( " node_coordinates" , node_coordinates )
167
+ self .assign_property ( " graph_lattice_matrix" , graph_lattice_matrix )
168
+ self .assign_property ( " graph_abc" , graph_abc )
169
+ self .assign_property ( " graph_charge" , graph_charge )
170
+ self .assign_property ( " graph_volume" , graph_volume )
171
171
172
172
return self
173
173
@@ -183,9 +183,9 @@ def _set_dataset_range_from_structures(self, structs, radius: float = 4.0, numer
183
183
range_indices .append (ridx )
184
184
range_image .append (rimg )
185
185
range_distance .append (rd )
186
- self .range_indices = range_indices
187
- self .range_image = range_image
188
- self .range_attributes = range_distance
186
+ self .assign_property ( " range_indices" , range_indices )
187
+ self .assign_property ( " range_image" , range_image )
188
+ self .assign_property ( " range_attributes" , range_distance )
189
189
190
190
def set_range (self , max_distance : float = 4.0 , max_neighbours = 15 , do_invert_distance = False ,
191
191
self_loops = True , exclusive = True ):
0 commit comments