Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
fishjojo committed Mar 13, 2024
1 parent f5e0133 commit dce676b
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 13 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/install_pyscf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
python -m pip install --upgrade pip
python -m pip cache purge
pip install wheel
pip install numpy
pip install 'scipy<1.12'
pip install h5py
pip install jaxlib
pip install jax
pip install pytest
pip install pytest-cov

pip install 'pyscf==2.3'
pip install 'pyscfadlib==0.1.4'
#pip install numpy
#pip install 'scipy<1.12'
#pip install h5py
#pip install jaxlib
#pip install jax
#pip install 'pyscf==2.3'
#pip install 'pyscfadlib==0.1.4'
pip install .
5 changes: 4 additions & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@
[MASTER]

# Files or directories to be skipped. They should be base names, not paths.
ignore=test
ignore=test,
backend,
numpy,
ml,

# Files or directories matching the regex patterns are skipped. The regex
# matches against base names, not paths.
Expand Down
2 changes: 1 addition & 1 deletion pyscfad/backend/_torch/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def asarray(a, dtype=None, order=None, *, like=None, **kwargs):
def iscomplexobj(x):
return torch.is_complex(x)

abs = ops.abs
abs = ops.abs
absolute = ops.absolute
add = ops.add
all = ops.all
Expand Down
2 changes: 1 addition & 1 deletion pyscfad/cc/dfccsd.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from pyscfad import numpy as np
from pyscf.lib import square_mat_in_trilu_indices
from pyscfad import numpy as np
from pyscfad import util
from pyscfad import lib
from pyscfad.ao2mo import _ao2mo
Expand Down
1 change: 0 additions & 1 deletion pyscfad/ml/scf/hf.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ def get_occ(self, mo_energy=None, mo_coeff=None):
mo_energy = self.mo_energy
mo_energy = ops.convert_to_numpy(mo_energy)
return super().get_occ(mo_energy)


if __name__ == '__main__':
import torch
Expand Down
2 changes: 1 addition & 1 deletion pyscfad/numpy/_numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
asarray = backend.numpy.asarray
iscomplexobj = backend.numpy.iscomplexobj

abs = backend.numpy.abs
abs = backend.numpy.abs
absolute = backend.numpy.absolute
add = backend.numpy.add
all = backend.numpy.all
Expand Down

0 comments on commit dce676b

Please sign in to comment.