@@ -264,7 +264,7 @@ def test_write(self, sisl_tmp, sisl_system, sile):
264264 if issubclass (sile , SileCDF ):
265265 pytest .importorskip ("netCDF4" )
266266
267- G = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , : ], what = "xyz+abc" )
267+ G = sisl_system .g .rotate ([ - 30 , sisl_system .g .cell [2 ] ], what = "xyz+abc" )
268268 G .set_nsc ([1 , 1 , 1 ])
269269 f = sisl_tmp ("test_write" )
270270
@@ -275,7 +275,7 @@ def test_read_write_lattice(self, sisl_tmp, sisl_system, sile):
275275 if issubclass (sile , SileCDF ):
276276 pytest .importorskip ("netCDF4" )
277277
278- L = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , : ], what = "xyz+abc" ).lattice
278+ L = sisl_system .g .rotate ([ - 30 , sisl_system .g .cell [2 ] ], what = "xyz+abc" ).lattice
279279 L .set_nsc ([1 , 1 , 1 ])
280280 f = sisl_tmp ("test_read_write_geom.win" )
281281
@@ -307,7 +307,7 @@ def test_read_write_lattice(self, sisl_tmp, sisl_system, sile):
307307 if issubclass (sile , SileCDF ):
308308 pytest .importorskip ("netCDF4" )
309309
310- L = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , :] , what = "xyz+abc" ).lattice
310+ L = sisl_system .g .rotate (( - 30 , sisl_system .g .cell [2 ]) , what = "xyz+abc" ).lattice
311311 L .set_nsc ([1 , 1 , 1 ])
312312 f = sisl_tmp ("test_read_write_geom.win" )
313313
@@ -333,7 +333,7 @@ def test_read_write_geometry(self, sisl_tmp, sisl_system, sile):
333333 if issubclass (sile , SileCDF ):
334334 pytest .importorskip ("netCDF4" )
335335
336- G = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , :] , what = "xyz+abc" )
336+ G = sisl_system .g .rotate (( - 30 , sisl_system .g .cell [2 ]) , what = "xyz+abc" )
337337 G .set_nsc ([1 , 1 , 1 ])
338338 f = sisl_tmp ("test_read_write_geom.win" )
339339
@@ -380,7 +380,7 @@ def test_read_write_hamiltonian(self, sisl_tmp, sisl_system, sile):
380380 if issubclass (sile , _gfSileSiesta ):
381381 pytest .skip ("gfSileSiesta handles writing Hamiltonians in a special way" )
382382
383- G = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , : ], what = "xyz+abc" )
383+ G = sisl_system .g .rotate ([ - 30 , sisl_system .g .cell [2 ] ], what = "xyz+abc" )
384384 H = Hamiltonian (G )
385385 H .construct ([[0.1 , 1.45 ], [0.1 , - 2.7 ]])
386386 f = sisl_tmp ("test_read_write_hamiltonian.win" )
@@ -409,7 +409,7 @@ def test_read_write_density_matrix(self, sisl_tmp, sisl_system, sile):
409409 if issubclass (sile , SileCDF ):
410410 pytest .importorskip ("netCDF4" )
411411
412- G = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , :] , what = "xyz+abc" )
412+ G = sisl_system .g .rotate (( - 30 , sisl_system .g .cell [2 ]) , what = "xyz+abc" )
413413 DM = DensityMatrix (G , orthogonal = True )
414414 DM .construct ([[0.1 , 1.45 ], [0.1 , - 2.7 ]])
415415
@@ -440,7 +440,7 @@ def test_read_write_energy_density_matrix(self, sisl_tmp, sisl_system, sile):
440440 if issubclass (sile , SileCDF ):
441441 pytest .importorskip ("netCDF4" )
442442
443- G = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , :] , what = "xyz+abc" )
443+ G = sisl_system .g .rotate (( - 30 , sisl_system .g .cell [2 ]) , what = "xyz+abc" )
444444 EDM = EnergyDensityMatrix (G , orthogonal = True )
445445 EDM .construct ([[0.1 , 1.45 ], [0.1 , - 2.7 ]])
446446
@@ -473,7 +473,7 @@ def test_read_write_hamiltonian_overlap(self, sisl_tmp, sisl_system, sile):
473473 if issubclass (sile , _gfSileSiesta ):
474474 pytest .skip ("gfSileSiesta handles writing Hamiltonians in a special way" )
475475
476- G = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , :] , what = "xyz+abc" )
476+ G = sisl_system .g .rotate (( - 30 , sisl_system .g .cell [2 ]) , what = "xyz+abc" )
477477 H = Hamiltonian (G , orthogonal = False )
478478 H .construct ([[0.1 , 1.45 ], [(0.1 , 1 ), (- 2.7 , 0.1 )]])
479479
@@ -504,7 +504,7 @@ def test_read_write_grid(self, sisl_tmp, sisl_system, sile):
504504 if issubclass (sile , SileCDF ):
505505 pytest .importorskip ("netCDF4" )
506506
507- g = sisl_system .g .rotate (- 30 , sisl_system .g .cell [2 , :] , what = "xyz+abc" )
507+ g = sisl_system .g .rotate (( - 30 , sisl_system .g .cell [2 ]) , what = "xyz+abc" )
508508 G = Grid ([10 , 11 , 12 ])
509509 G [:, :, :] = np .random .rand (10 , 11 , 12 )
510510
0 commit comments