Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enabled writing HSX files #884

Merged
merged 2 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ we hit release version 1.0.0.
## [0.15.3] - YYYY-MM-DD

### Added
- `hsxSileSiesta.write_hamiltonian`, allowed writing HSX files
A long required functionality. This allows one to use the HSX file
format in intrinsic behavior. TSHS file format will be deprecated in
later Siesta releases, see https://gitlab.com/siesta-project/siesta/-/issues/183
This allows one to write HSX files in version 1, or 2, 2 is default.
- `astype` for sparse matrices, enables one to change data-types, #865
This should be preferred over transform which can't do real->complex
of spin matrices.
Expand Down
3 changes: 3 additions & 0 deletions src/sisl/_core/orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -1041,6 +1041,9 @@
if n <= 0:
raise ValueError(f"{self.__class__.__name__} n must be >= 1")

if zeta <= 0:
raise ValueError(f"{self.__class__.__name__} zeta must be >= 1")

Check warning on line 1045 in src/sisl/_core/orbital.py

View check run for this annotation

Codecov / codecov/patch

src/sisl/_core/orbital.py#L1045

Added line #L1045 was not covered by tests

if self.l >= len(_rspher_harm_fact):
raise ValueError(
f"{self.__class__.__name__} does not implement shells l>={len(_rspher_harm_fact)}!"
Expand Down
4 changes: 0 additions & 4 deletions src/sisl/io/siesta/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ set(sig_sources
grid_read grid_write
gf_read gf_write
tsde_read tsde_write
hs_read
wfsx_read
)
# The REGEX allows Option 2 to pass through correctly
Expand All @@ -30,9 +29,6 @@ set_source_files_properties("${name}"
)

get_filename_component(name _src/hsx_write.f90 NAME)
set_source_files_properties("${name}"
PROPERTIES SISL_SIGNATURE_SKIP "write_hsx1"
)

# Additional sources which we do not need interfaces
# to in the Python front
Expand Down
144 changes: 0 additions & 144 deletions src/sisl/io/siesta/_src/hs_read.f90

This file was deleted.

Loading
Loading