Skip to content

Commit

Permalink
fixed pylint config
Browse files Browse the repository at this point in the history
  • Loading branch information
freude committed Jun 22, 2020
1 parent 330700b commit 60fd97e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ install:
# command to run tests
script:
- nosetests --with-coverage
- pylint --errors-only --generated-members=coolwarm,accumulate --ignored-modules=numpy,scipy --ignored-classes=numpy,spipy --extension-pkg-whitelist=numpy,scipy nanonet/
- pylint --errors-only --generated-members=coolwarm,accumulate,multiply --ignored-modules=numpy,scipy --ignored-classes=numpy,spipy --extension-pkg-whitelist=numpy,scipy nanonet/
branches:
only:
- master
Expand Down
2 changes: 1 addition & 1 deletion nanonet/negf/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def _transform(self, coords1, translate):

if len(self._rot_mat) > 0:
for item in self._rot_mat:
coords[j] = np.dot(item * coords[j].T).T[0]
coords[j] = np.dot(item, coords[j].T).T[0]

return coords

Expand Down
2 changes: 1 addition & 1 deletion nanonet/tb/reduced_mode_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def object_function1(vec, energy, init_basis, extended_basis, h_l, h_0, h_r, num

print(num_of_states1 - num_of_states, ' : ', vec)

return num_of_states1 - num_of_states + (np.dot(vec * vec.conj().T) - 1.0) ** 2
return num_of_states1 - num_of_states + (np.dot(vec, vec.conj().T) - 1.0) ** 2


def object_function(vec, energy, init_basis, extended_basis, h_l, h_0, h_r, num_of_states):
Expand Down

0 comments on commit 60fd97e

Please sign in to comment.