forked from zerothi/sisl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CHANGELOG
939 lines (610 loc) · 29.6 KB
/
CHANGELOG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
0.X.Y
=====
- Enabled `sgrid` to write tables of data
- Merged spin_orbital_moment(deleted) and spin_moment with
optional argument project
- Enabled orbital resolved velocities
- Added outSileSiesta.read_energy to read final energies
- Ensured ghost atoms in Siesta are handled with separate
class, AtomGhost, #249
- Using `si.RealspaceSI` with `unfold=(1,1,1)` no longer results in `nsc` on
the given surface hamiltonian being set to `(1,1,1)`.
- Added calculation of isosurfaces, #246
- Added `sisl.WideBandSE` for self-energies with constant
diagonals
- Enabled more user control over categories, #242
- Improved interpolation function for Grid's, and also
added filters
- Bugfix for periodic directions for ASE conversion, #231
- Fixed tuples for _sanitize_atoms, #233
- Fixed reading correct unit from deltanc files, #234
- Enabled berry-phase calculations for NC+SOC, #235
- Added tiling to Grid, #238
- Added Atoms.group_data which nicely splits an array holding
orbital information into atomic contributions (a list since
each sub-list may be unequal in length)
- Many small bug-fixes and performance improvements
0.10.0
======
- Exposing sisl_toolbox as a module for external contributions
Now stuff contributed from 3rd parties can easily be included
in a toolbox which is a separate module.
- Changed asarray (as*) methods for SparseGeometry
Now we have a dispatch class which enables one
to store the behaviour as variables and then post-process
- Using *.geom or geometry.atom is now deprecated, use
*.geometry and geometry.atoms instead (respectively)
- Added spin-rotation for density matrices, this will
enable sisl to manipulate DM and write them for
Siesta calculations
- Enabled all numpy.ufuncs (np.exp(H))
- Added nanoribbons construction (Thomas)
- Internal change to pathlib for files and paths
- Added velocity calculations for NC+SOC Hamiltonians
- Sparse pattern transposes of non-full matrices, fixed bug
- Changed Geometry.sort to be more diverse (this may break old code)
This new way of sorting is way more flexible and allows very fine
control, fixes #191, #197
- Added a bilayer geometry which can create twisted bilayers #181, #186
- Enabled VASP *CAR files to write/read dynamic specifications #185
- Enabled xarray.DataArray returning from BrillouinZone objects #182
- Several improvements to outSileSiesta.read_scf #174, #180
- A huge performance increase for data extraction in tbtncSileTbtrans
(thanks to Gaetano Calogero for finding the bottleneck)
- Added preliminary usage of Mixers, primarily intented for extending
sisl operations where SCF are used (may heavily change).
- Lots of small bug-fixes
- Now sisl is Python >=3.6 only, #162
This release was helped by the following committers (THANKS):
- Thomas Frederiksen
- Pol Febrer
- Jonas Lundholm Bertelsen
- Bernhard Kretz
0.9.8
=====
- fixed #160 by removing all(?) TRS k-points in a Monkhorst Pack grid
- fixed repeat for SparseGeometryOrbital #161
- changed lots of places for einsum in electron.py for increased performance
- added AHC conductivity calculations `conductivity` (not tested)
- added Berry curvature calculations `berry_flux` (not tested)
- added Overlap class to directly use overlap matrices (without having a
second matrix).
- fixed geometry align issue when reading geometries from Siesta output #153
- fixed pickling a sparse matrix #150
- Fixed TSV.nc write-out for grid files (see poisson_explicit.py)
- Fixed fermi level calculation for non-polarized calculations
- Reverted Fermi calculation routine for more stable implementation
- fixed DynamiclMatrix reading for number of atoms not divisable by 4 #145
A huge thanks to Jonas L. B. for fixes, suggestions etc.
0.9.7
=====
- Bug-fix for reading geometries in outSiesta
- Enabled reading the fermi level from the output, fixes #126
- Enabled Siesta STM and STS output
- Fixed an inheritance issue in `axsfSile` which meant it was unusable until
now
- Maintenance fix for looping sparse matrices.
Now the default is to loop the sparse non-zero elements.
If one wishes to loop all atoms/orbitals one should use `iter_orbitals()`
NOTE: This *may* break some codes if they used loops on sparse matrices
- Fixed reading VASP CAR files with constraints (thanks to T. Frederiksen)
- Added `overlap` method to `Geometry` to find overlapping atoms
between two geometries.
- Added Siesta LDOS charge handling
- Changed edges method to not exclude it-self by default.
This is because it is not intuitive given the default exclude=None
Note: this may break compatibility with other software/scripts.
- Added mulliken charge calculations and orbital angular momentum
for SO DM, fixes #136
- Fixed reading overlap matrix in conjunction with DM from fdf-sile
- Performance increase for the real-space self-energy calculations
- Fixed transposing of the spin-box for NC and SO matrices
- Enabled TRS handler for SO matrices, fixes #125
- Enabled better b-casting assignments for sparse-matrices, fixes #134
- Upgraded documentation to a layout that obeys numpydoc
- Fixed reading ASE xyz outputs, thanksto JL. Bertelsen,
- Fixed a typo in fdf reading onlyS, thanks to JL. Bertelsen, #135
- Enabled reading arbitrary self-energy by requesting an energy and k-point
from TSGF files.
- Upgraded handling of TBT.*.nc files to conform with the >=Siesta-4.1-b5
releases where all files contain the same device + electrode meta-data.
- Deprecated TBTGFSileTBtrans (use tbtgfSileTBtrans instead)
- Forced align=False in inner such that users should take care of this
- Added align_norm to swap states such that they more or less
correspond to the same band (which should have a closer residual
for on-site coefficients).
- Removed norm2 and made norm equal to norm2 for states. This is
the more natural thing, besides. Doing norm() ** 0.5 shouldn't be
too much of a problem.
0.9.6
=====
- Officially added real-space self-energy calculations
- Cleaned TBT vs. PHT for class name structures
- Bugfix for reading MD output from Siesta out-files #130
- Bugfix for tbtse files when requesting pivoting indices using this
combination ``in_device=True, sort=False`` which in most cases
return wrong indices, thanks to J. Bertelsen for bug-find!
- Added several routines for retrieving transposed coupling elements.
When having connections `i -> j` it may be beneficial to easily get
the transposed connection `j -> i` by taking into account the
supercell. `Geometry.a2transpose` enables this functionality making
construct functions much simpler when having edges/boundaries.
- Bug-fix for reading white-space prefixed keywords in XSF files, #127
- Performance increase for self-energy calculations for very small
systems
- Huge memory reduction for `Geometry.o2a` with very large system
- Enabled pickling on `BrillouinZone` objects
- Added `spin_moment` to `Hamiltonian`
- Removed ``rotate[abc]`` methods since they were cluttering the name-space
Codes should simply replace with:
>>> geometry.rotate(angle, geometry.cell[{012}, :], *)
for the same effect.
- Finally removed deprecated `write_geom` from the API
- Enabled calculation of ``<S^2>`` for spin-polarized calculations, this
may be used for calculating spin-contaminations
- added checks for `SparseCSR` to disallow out-of-bounds keys
- Bug fixed for reading POSCAR files from VASP (only when multiple species are
used in a non-ordered fashion)
- added `sisl` command line utility, it is exactly the same as `sdata`
- Enabled pickling sparse matrices, this allows dask usage of sparse matrices
- Performance increase for sparse matrix handling
- Fixed a problem with Fortran IO + Jupyter notebooks, now the file-handles
are re-used if a code block is terminated before closing the file
- Added `SparseOrbital` `append` + `transpose`
This enables appending Hamiltonian's (append) and makes hermiticity
checks possible (transpose)
- Enabled complex averaged calculations using `oplist`
The `oplist` object is a container allowing inter-element operations
>>> l1 = oplist([0, 1])
>>> l2 = oplist([2, 3])
>>> l = l1 + l2
>>> print(l)
[2, 4]
This is extremely handy for `BrillouinZone.asaverage`/`assum` when calculating
multiple values using `eigenstate` objects.
- Added reflection calculation to `tbtncSileTBtrans`
- Added more distribution functions (step and heaviside)
- Removed numpy deprecated class numpy.matrix, now everything is array
- Removed possibility of using `kavg=list(...)` due to complexity, now single
`kavg` requests are *not* k-averaged.
- Bugfix in calculating `shot_noise`, `noise_power` and `fano` factors in `tbtncSileSiesta`
They were only correct for Gamma-point calculations
- Fixed *.EIG `sdata` processing when using --dos
- Fixed reading geometries from grids from VASP (grid values were correct)
- Toolboxes:
* Added a toolbox to calculate the Poisson solution for arbitrary
electrodes for TranSiesta
0.9.5
=====
- Fixed temperature for phonon output pht*nc files
- Added tbtprojncSileTBtrans sile for analyzing projected transmissions
- Removed deprecated dhSileTBtrans
- Bug fix for binary grid files with Siesta and also reads using fdf-files
- Changed default self-energy eta values to 1e-4 eV
- Added Zak-phase calculations (thanks to T. Frederiksen)
- Updated lots of State methods
- added Bloch expansion class which can expand any method
- self-energy calculations:
- Much faster
- enabled left/right self-energies in one method
- fixed AtomicOrbital copies
- enabled TSGF reads
- Added noise-power calculations for TBT.nc files
- Fixed TBT.SE.nc files, units and scattering matrix retrieval
- added more VASP files
0.9.4
=====
- Fixes for the GULP dynamical matrix reads
- Enabled preliminary reads of OpenMX input file
- Enabled DOS calculation for the eigenvalue files
- Added Berry-phase calculation for orthogonal basis sets
- Added velocity calculation of electronic eigenstates
- Enabled effective mass tensor in electronic eigenstates (un-tested)
- High performance increase by moving stuff to Cython.
- Added Siesta interaction tutorials
- Added orthogonality checks when reading sparse matrices
- Lots of fixes for the fdf-file
- Added Mulliken calculation in DensityMatrix/EnergyDensityMatrix
- Enabled reading phonons from FC files
- Added named-groups which enables accessing groups of atoms by names.
Geometry['Hello'] = [2, 3, 4]
- Changed Hessian to DynamicalMatrix to clarify the units
- Added new units class to handle complex units.
- Enabled a Phonon class to calculate group velocities of phonons, DOS and PDOS,
displacements
- Bug-fixes for Siesta binary writes, now the supercell format is *always*
Siesta compliant.
- Enabled replacing k-points in MonkhorstPack grids.
- Enabled calculation of band-velocities from eigenstates
- Made better progress-bars. Using eta= now relies on tqdm
It is however still an optional dependency.
- Fixed Gamma-point periodic wavefunction storage.
Creating grids with wave-functions is fully functional
for arbitrarily big supercells.
- BrillouinZone objects:
- Renamed PathBZ to BandStructure
- Renamed MonkhorstPackBZ to MonkhorstPack
- Enabled MonkhorstPack symmetry. This will reduce the number of
k-points to roughly half (note symmetry is by default *on*)
- Forced MonkhorstPack to create a k-grid which is Gamma centered
- Shapes (backwards compatibility broken)
- Complete re-write of Shapes
- Skewed Cuboids, Ellipsoids
- Set combinations of Shapes (unions, difference sets, etc.)
- Grid
- Enabled Grid.index for shapes.
- Fixed grid initialization to create grid spacings fixed by a real.
I.e. the voxel spacing.
>>> Grid([10, 10, 10]) # 10 points per lattice vector
>>> Grid(0.1) # 0.1 Angstrom spacing
- Enabled plotting wavefunctions on grids.
- Enabled plotting charge density on grids.
- Enabled tqdm usage for progressbar. It is fast and easy to use
and a small requirement. (still optional)
- Added intrinsic Sisl exceptions which will be used throughout
(at some point)
- Removed deprecated TightBinding class (use Hamiltonian instead)
- Added many SislWarning raises which are used to notify the user of
potentially important things (say if sisl knows there should be a unit
associated but it couldn't find it).
- Added TSDE file reading in sisl.
- Siesta reading of grid-related data is now much *smarter*. It will
try and recognize the units of the data so the units become sisl
intrinsics (Ry -> eV, Bohr -> Ang, etc.).
This means that typically one does not need to do manual unit-conversion.
There are however a few cases where sisl cannot figure out the
units. Particularly if the files are renamed.
- Added a new class EigenSystem which holds information regarding
eigenvalues and eigenvectors.
- Currently an EigenState class is also enabled which can currently
be used to calculate wavefunctions, DOS, PDOS and more to come.
- Fixed lots of bugs in fdf-reading quantities.
Now one is also able to read Hamiltonian and other physical
quantities from the fdf-object directly. There is pre-defined
orders of which files to read from if there are multiple files
eligeble.
Reading the geometry now defaults to the fdf file, but one can query
the output files by a boolean.
- Enabled PDOS calculations for the Hamiltonian. Together
with the MonkhorstPack class one can easily calculate
k-averaged PDOS quantities.
- Fixed cube reading/writing of multi-column data.
- Added siesta PDOS xml parsing, currently this is only scriptable
but it manages easy extraction of quantities without the PDOSXML utility.
This also enables retrieving the PDOS as an xarray.DataArray.
- Fixed a bug in writing XV files (only for -100/-200 species)
- TBtrans / TBT.nc file:
- Added TBT.SE.nc file to enable easy extraction of self-energies
from TBtrans
- Added COOP and COHP extraction to the TBT.nc files.
- Added DM and ADM extraction to the TBT.nc files.
- Reorganized the TBtrans netcdf files (internal changes only)
- Added shot-noise calculation (and Fano factor). Currently un-tested!
- Several added files
0.9.2
=====
- Various minor bug-fixes
0.9.1
=====
- Fixed scaling of bond-currents in case 'all' is used, makes comparison
with '+' and '-' easier.
- Updated defaults in bond_current to '+' such that only forward
going electrons are captured.
- Updated defaults in vector_current to '+' such that only forward
going electrons are captured.
0.9.0
=====
- Enabled reading a tabular data-file
- Lots of updates to the spin-class. It should now be more coherent.
- Added rij and Rij to the sparse_geometry classes to extract orbital or
atomic distance matrices (returing the same sparsity pattern).
- Renamed `which` keyword in `Geometry.center` to `what`
- Added uniq keyword to o2a for better handling of orbitals -> atoms.
- Fixed a performance bottleneck issue related to the `scipy.linalg.solve`
routine which was changed since 0.19.0.
- Changed internal testing scheme to `pytest`
- Lots of bug-fixes here and there
- Geometry files used in the command-line has updated these arguments:
- tile
- repeat
- rotate
The order of the arguments are interchanged to be similar to the
scripting capabilities.
Also fixed an issue related to moving atoms into the unit-cell.
- Enabled deleting supercell elements of a sparse Geometry. This
will come in handy when calculating the self-energies and Green
functions. I.e. Hamiltonian.set_nsc(...) will truncate entries
based on the new supercell.
- Preliminary testing of reading Siesta binary output (.RHO, .VT, etc.)
- Added parsing the Siesta EIG file (easy plotting, reading in Python)
- Changed interface for BrillouinZone objects.
Now a BrillouinZone accepts any object which has cell/rcell entries.
Any function call on the BrillouinZone object will transfer the call to the
passed object and evaluate that function for all k-points in the BrillouinZone.
- sisl.io.siesta.tbtrans
* Added current calculator to TBT.nc sile to calculate the current as TBtrans
does it (this requires the latest commit in SIESTA which defines the
chemical potential and electronic structure of *all* electrodes).
* Bug-fixes for TBT.nc sile, the bond-currents for multi-orbital systems
were in some cases wrong.
* Huge performance increase for TBT.nc data processing. Now the majority
of routines are based on array-indexing, rather than sparse loops.
* Changed the DOS retrieval functions to be more flexible. The default is
now to return the summed DOS across the selected atoms.
* Added a TBTGFSileSiesta which enables one to create _external_ self-energies
to be read in by TBtrans (complete electrode control).
* Added `deltancSileSiesta` as a replacement for `dHncSileSiesta`, TBtrans 4.1b4
will have two delta terms, dH (adds to bond-currents) and dSigma (does not
add to bond-currents).
* BEWARE, lots of defaults has changed in this release.
- Hamiltonian.tile is now even faster, only utilizing
intrinsic numpy array functionality.
- Greatly speeded up Hamiltonian.remove/sub functions.
Now there are no for-loops in the remove/sub routines which
will greatly increase performance.
It will now be much faster to generate the Hamiltonian for
a small reference cell, tile/repeat it, remove atoms.
0.8.5
=====
- Added the following routines:
* `SuperCell.fit` routine to determine a new supercell object
such that a given set of coordinates are all within AND
periodic in the new supercell.
* `SuperCell.parallel` to check whether two objects have parallel
latticevectors.
* `Geometry.distance` returns a list of distances from a given
set of atoms. I.e. to determine a set of distances required for
a subsequent close call. This routine can also be used to group
neighbouring atoms in a common fashion.
* `Geometry.optimize_nsc` loops all atoms and minimizes `nsc` in case
one is not sure of the interaction range.
* `Hamiltonian.shift` enables the shift of the entire electronic structure
Fermi-level.
* Added new flag to `Hamiltonian.Hk` routines
``format={'csr', 'array', 'dense', ...}``
to ensure a consistent return of the data-type.
- Bug fix for dHncSileSiesta for multiple levels.
- Performance boost for the sub and remove functions for the
Hamiltonian objects. Instead of creating the geometry first,
it may now be much faster to generate the small Hamiltonian,
tile -> repeat -> sub -> remove.
- Performance boost for the tile and repeat functions for the
Hamiltonian objects. They are now the preferred method for creating
large systems.
- Bug fixed when having extremely long atomic ranges and using tile/repeat.
The number of supercells was too large.
It did not affect anything, but it was inconsistent.
- Enabled reading the density matrix and energy density matrix from siesta.
- Addition of a PerformanceSelector class which enables a dynamic
selection of the best routine.
Currently this is enabled in the SparseOrbitalBZ class where
constructing a matrix @ k can be done in numerous ways.
- Bug fixed in supercell specification of the Hamiltonian:
>>> H[io, jo, (-1, 0, 0)]
now works in all cases.
- Spin-orbit H(k) has been enabled
- Fixed reading the <>.nc file from SIESTA, the non-zero elements count was
wrong.
- Now H(k) has been tested for non-colinear and spin-orbit coupling and
one can now use sisl to perform non-colinear and spin-orbit coupling
calculations.
- API change, all dR keywords has been changed to R for consistency and
reduction of ambiguity.
Also the `Atoms.dR` is now referred to as `Atoms.maxR()` to indicate
its meaning.
This may break old scripts if one use the `dR` keyword in arguments.
0.8.4
=====
- Added BrillouinZone class to easily create BrillouinZone plots etc.
When calculating the eigenspectrum of a Hamiltonian one may pass
the BrillouinZone object instead of the k-point to retrieve all
eigenvalues for the k-points in the BrillouinZone object.
Say for a PathBZ one can now easily retrieve the band-structure.
- Enabled specification of Hamiltonian connections across supercells via
a tuple index (as the last index):
>>> H[io, jo, (-1, 0, 0)]
Thus connecting orbital `io` and `jo` across the -1 first lattice vector
- Enabled tbtrans files to attach a geometry (to get correct species).
- API change of:
read/write_geom => read/write_geometry
read/write_sc => read/write_supercell
read/write_es => read/write_hamiltonian
Moved `quantity` to `physics`.
- Enabled slice deletion in `SparseCSR`
Enabled eliminate_zeros() to remove unneeded values.
- Added ScaleUp compatibility. sisl now acceps ScaleUp files which is
a 2nd principles code for large scale calculations using Wannier
functions.
- Added Hamiltonian.sub/remove/tile for easy extension of Hamiltonian
without having to construct the larger geometries.
This should speed up the creation of really large structures
as one may then simply "update" the Hamiltonian elements subsequently.
0.8.3
=====
- Fixed bug in __write_default (should have been _write_default)
- API change in `close` functions, now ret_coord => ret_xyz,
ret_dist => ret_rij
- Added `SparseCSR` math operations work on other `SparseCSR` matrices
Thus one may now do:
>>> a, b = SparseCSR(...), SparseCSR(...)
>>> aMb, aPb = a * b, a + b
Which makes many things much easier.
If this is used, you are encouraged to assert that the math is correct.
Currently are the routines largely untested. _Assistance is greatly appreciated
in creating `nosetests`_.
- Geometries now _always_ create a supercell. This was not the case when
an atom with no defined orbital radius was used. Now this returns a
supercell with 10 A of vacuum along each Cartesian direction.
0.8.2
=====
- Fixed reading _hr.dat from Wannier90, now the band-structure of
SrTiO3 (Junquera's test example) is correct.
- Speeded up tbtrans.py analyzing methods enourmously by introducing
faster sparse iterators. Now one can easily perform data-analysis on
systems in excess of 10.000 atoms very fast.
- Added the TBT.AV.nc file which is meant to be created by `sisl` from
the TBT.nc files (i.e. create the k-averaged output).
This enables users to run tbtrans, create the k-averaged output, and
then delete the old file to heavily reduce disk-usage.
An example:
tbtrans RUN.fdf > TBT.out
sdata siesta.TBT.nc --tbt-av
rm siesta.TBT.nc
after this `siesta.TBT.AV.nc` exists will all k-averaged quantites.
If one is not interested in k-resolved quantities this may be very interesting.
- Updated the TBT.nc sile for improved readability.
- Easier script data-extraction from TBT.nc files due to easier conversion
between atomic indices and pivoting orbitals.
For this:
* a2p
returns the pivoting indices for the given atoms (complete set)
* o2p
returns the pivoting indices for the given orbitals
* Added `atom` keyword for retrieving DOS for a given set of atoms
* `sdata` and `TBT.nc` files now enable the creation of the TBT.AV.nc file
which is the k-averaged file of TBT.nc
- Faster bond-current algorithms (faster iterator)
- Initial template for TBT.Proj files for sdata processing
- Geometry:
* Enabled multiplying geometries with integers to emulate `repeat` or
`tile` functions:
>>> geometry * 2 == geometry.tile(2, 0).tile(2, 1).tile(2, 2)
>>> geometry * [2, 1, 2] == geometry.tile(2, 0).tile(2, 2)
>>> geometry * [2, 2] == geometry.tile(2, 2)
>>> geometry * ([2, 1, 2], 'repeat') == geometry.repeat(2, 0).repeat(2, 2)
>>> geometry * ([2, 1, 2], 'r') == geometry.repeat(2, 0).repeat(2, 2)
>>> geometry * ([2, 0], 'r') == geometry.repeat(2, 0)
>>> geometry * ([2, 2], 'r') == geometry.repeat(2, 2)
This may be considered an advanced feature but useful nonetheless.
* Enabled "adding" geometries in a similar way as multiplication
I.e. the following applies:
>>> A + B == A.add(B)
>>> A + (B, 1) == A.append(B, 1)
>>> A + (B, 2) == A.append(B, 2)
>>> (A, 1) + B == A.prepend(B, 1)
* Added `origo` and `atom` argument to rotation functions. Previously this could be
accomblished by:
rotated = geometry.move(-origo).rotate(...).move(origo)
while now it is:
rotated = geometry.rotate(..., origo=origo)
The origo argument may also be a single integer in which case the rotation
is around atom `origo`.
Lastly the `atom` argument enables only rotating a sub-set of atoms.
* Geometry[..] is now calling axyz if `..` is pure indices, if it is
a `slice` it does not work with super-cell indices
* Added `rij` functions to the Geometry for retrieving distances
between two atoms (`orij` for orbitals)
* Renamed iter_linear to iter
* Added argument to iter_species for only looping certain atomic indices
* Added iter_orbitals which returns an iterator with atomic _and_ associated
orbitals.
The orbitals are with respect to the local orbital indices on the given atom
```
>>> for ia, io in Geometry.iter_orbitals():
>>> Geometry.atom[ia].R[io]
```
works, while
```
>>> for ia, io in Geometry.iter_orbitals(local=False):
>>> Geometry.atom[ia].R[io]
```
does not work because `io` is globally defined.
* Changed argument name for `coords`, `atom` instead of the
old `idx`.
* Renamed function `axyzsc` to `axyz`
- SparseCSR:
* Added `iter_nnz(i=None)` which loops on sparse elements connecting to
row `i` (or default to loop on all rows and columns).
* `ispmatrix` to iterate through a `scipy.sparse.*_matrix` (and the `SparseCSR`
matrix).
- Hamiltonian:
* Added `iter_nnz` which is the `Hamiltonian` equivalent of `SparseCSR.iter_nnz`.
It enables explicit looping on atomic couplings, or orbital couplings.
I.e. one may specify a subset of atoms or orbitals to loop over.
* Preliminary implementation of the non-collinear spin-case. Needs testing.
0.8.1
=====
- Fix a bug when reading non-Gamma TSHS files, now the
supercell information is correct.
- tbtncSileSiesta now distinguishes between:
electronic_temperature [K]
and
kT [eV]
where the units are not the same.
- Fixed TBT_DN.nc TBT_UP.nc detection as a `Sile`
- Added information printout for the TBT.nc files
sdata siesta.TBT.nc --info
will print out what information is contained in the file.
- `Atoms` overhauled with a lot of the utility routines
inherent to the `Geometry` object.
It is now much faster to perform operations on this
object.
- The FDF sile now allows setting and retrieving variables
from the fdf file. Hence one may now set specific
fdf flags via:
sdata RUN.fdf --set SolutionMethod Transiesta
- Changed default output precision for TXT files to .8f.
Additionally one may use flag `--format` in `sgeom` to
define the precision.
- `Shape`s have been added. There are now several Shapes
which may be used to easily find atoms within a given Shape.
This should in principle allow construction of very complex Shapes
and easier construction of complex Hamiltonians
0.8.0
=====
This release introduces many API changes and a much more stream-lined
interface for interacting with sisl.
You are heavily encouraged to update your distribution.
Here is a compressed list of changes:
- sdata is now an input AND output dependent command.
It first reads the input and output files, in a first run, then
it determines the options for the given set of files.
Secondly, the sdata command uses "position dependent" options.
This means that changing the order of options may change the output.
- tbtncSile
* Correct vector currents (for xsf files)
* bug-fix for Gamma-only calculations
* returned DOS is now correctly in 1/eV (older versions returned 1/Ry)
* fixed sdata atomic[orbital] ranges such that, e.g. `--atom [1-2][3-5]`
(for atom 1 and 2 and only orbitals 3, 4 and 5 on those atoms.)
* DOS queries now has an extra argument (E) which returns only for the
given energy.
* When storing tables in sdata this now adds information regarding
each column at the top (instead of at the bottom).
Furthermore, the information is more descriptive
- Changed all `square` named arguments to `orthogonal`
- Added nsc field to xyz files (to retain number of supercells)
- Added `move` function for geometry (same as translate)
- Added `prepend` function, equivalent to `append`, but adding the
atoms in the beginning instead of the end
- Fixed many bugs related to the use of Python-ranges (as opposed to numpy ranges)
- SparseCSR now enables operations:
a = SparseCSR(...)
a = a * 2 + 2
is now viable. This enables easy scaling, translation etc. using the
sparse matrix format (very handy for magnetic fields).
- Enabled `del` for SparseCSR, i.e. `del SparseCSR(..)[0, 1]` will
remove the element, completely.
- Enabled reading of the TSHS file from SIESTA 4.1, now we may easily interact
with SIESTA.
- Moved version.py to info.py
- Moved scripts to `entry_points`, this makes scripts intrinsic in the module
and one may import and use the commands as their command-line equivalents.
- Hamiltonian.construct now takes a single argument which is the function
for the inner loop.
The old behaviour may be achieved by doing either:
>>> func = Hamiltonian.create_construct(R, param)
>>> Hamiltonian.construct(func)
or
>>> Hamiltonian.construct((R, param))
- The atoms contained in the Geometry are now not duplicated in case of many
similar Atom objects. This should reduce overhead and increase throughput.
However, the efficiency is not optimal yet.
- Added many more tests, thus further stabilizing sisl
I would really like help with creating more tests!
Please help if you can!
# Local Variables:
# mode: text
# comment-column: 0
# tab-width: 2
# End: