Skip to content

Commit

Permalink
fixed #128
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeZ committed Mar 4, 2019
1 parent 8cec186 commit 2cbf206
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ install:

- pip install "git+https://github.com/SCM-NV/PLAMS@master#egg=plams-1.2"
- pip install "https://github.com/SCM-NV/qmflows/tarball/master#egg=qmflows"
- pip install .[test]
- pip install .[test] -v


before_script:
Expand Down
4 changes: 2 additions & 2 deletions nac/workflows/workflow_stddft_spectrum.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ def compute_oscillator_strengths(

def compute_transition_matrix(matrix):
return np.stack(
np.sum(
[np.sum(
np.sqrt(2 * delta_ia / omega[i]) * xia[:, i] * matrix)
for i in range(nocc*nvirt))
for i in range(nocc*nvirt)])

# 2) Compute the transition dipole matrix TDM(i->a)
# Call the function that computes transition dipole moments integrals
Expand Down
2 changes: 1 addition & 1 deletion test/test_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def check_hamiltonians(hamiltonians: str) -> None:
Check that the hamiltonians were written correctly
"""
energies = np.stack([np.diag(np.loadtxt(ts[1])) for ts in hamiltonians])
couplings = np.stack(np.loadtxt(ts[0]) for ts in hamiltonians)
couplings = np.stack([np.loadtxt(ts[0]) for ts in hamiltonians])

# check that energies and couplings are finite values
assert np.isfinite(energies).all()
Expand Down

0 comments on commit 2cbf206

Please sign in to comment.