Skip to content

Commit

Permalink
Use np.linspace instead of np.arange
Browse files Browse the repository at this point in the history
  • Loading branch information
edan-bainglass committed Feb 17, 2024
1 parent f945e1d commit 7fe7f96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/coulomb_blockade/pentacene/hybr.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def hybridize_orbitals(
gfp = ProjectedGreenFunction(gf, los_indices)
hyb = Hybridization(gfp)

energies = np.arange(E_min, E_max + E_step / 2.0, E_step).round(7)
energies = np.linspace(E_min, E_max, int((E_max - E_min) / E_step) + 1)

no = len(los_indices)
gd = GridDesc(energies, no, complex)
Expand Down
2 changes: 1 addition & 1 deletion examples/coulomb_blockade/pentacene/trans.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def compute_transmission(
eta=eta,
)

energies = np.arange(E_min, E_max + E_step / 2.0, E_step).round(7)
energies = np.linspace(E_min, E_max, int((E_max - E_min) / E_step) + 1)

i1 = los_indices - leads_nao
s1 = hs_list_ii[1][1]
Expand Down

0 comments on commit 7fe7f96

Please sign in to comment.