@@ -234,24 +234,24 @@ def get_array(self, key: str) -> np.ndarray:
234234 if self .ulm is None :
235235 return
236236 values = {
237- 'unitcell' : lambda : self .ulm .atoms .cell ,
238- 'atomicnumbers' : lambda : self .ulm .atoms .numbers ,
239- 'atom_positions' : lambda : self .ulm .atoms .positions ,
240- 'boundaryconditions' : lambda : self .ulm .atoms .pbc ,
241- 'momenta' : lambda : self .ulm .atoms .momenta ,
242- 'atom_forces_free_raw' : lambda : self .ulm .results .forces ,
243- 'magneticmoments' : lambda : self .ulm .results .magmoms ,
244- 'eigenvalues' : lambda : self .ulm .wave_functions .eigenvalues ,
245- 'occupation' : lambda : self .ulm .wave_functions .occupations ,
237+ 'unitcell' : self .ulm .atoms .cell ,
238+ 'atomicnumbers' : self .ulm .atoms .numbers ,
239+ 'atom_positions' : self .ulm .atoms .positions ,
240+ 'boundaryconditions' : self .ulm .atoms .pbc ,
241+ 'momenta' : self .ulm .atoms .momenta ,
242+ 'atom_forces_free_raw' : self .ulm .results .forces ,
243+ 'magneticmoments' : self .ulm .results .magmoms ,
244+ 'eigenvalues' : self .ulm .wave_functions .eigenvalues ,
245+ 'occupation' : self .ulm .wave_functions .occupations ,
246246 # TODO no koints data in ulm?
247- 'kpoints' : lambda : self .ulm .IBZKPoints ,
248- 'density' : lambda : self .ulm .density .density ,
249- 'potential_effective' : lambda : self .ulm .hamiltonian .potential ,
250- 'band_paths' : lambda : self .ulm .wave_functions .band_paths .asdict (),
247+ 'kpoints' : self .ulm .IBZKPoints ,
248+ 'density' : self .ulm .density .density ,
249+ 'potential_effective' : self .ulm .hamiltonian .potential ,
250+ 'band_paths' : self .ulm .wave_functions .band_paths .asdict (),
251251 }
252252 try :
253253 if key in values :
254- val = values .get (key )()
254+ val = values .get (key )
255255 else :
256256 val = self .ulm .asdict ().get (key , None )
257257 except Exception :
0 commit comments