Skip to content

Commit

Permalink
added to TREXIO conveter/TREXIO to TurboRVB conveter currently accept…
Browse files Browse the repository at this point in the history
…s only cell_a = [a, 0.0, 0.0].
  • Loading branch information
kousuke-nakano committed Feb 16, 2024
1 parent 663df83 commit afde697
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions turbogenius/trexio_to_turborvb.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ def trexio_to_turborvb_wf(
phase_up = [+k1, +k2, +k3]
phase_dn = [+k1, +k2, +k3]

if np.abs(cell_a[1]) > 1.0e-10 or np.abs(cell_a[2]) > 1.0e-10:
logger.error('TREXIO to TurboRVB conveter currently accepts only cell_a = [a, 0.0, 0.0].')
raise NotImplementedError

cell = Cell(
vec_a=cell_a,
vec_b=cell_b,
Expand Down

0 comments on commit afde697

Please sign in to comment.