Skip to content

Commit

Permalink
fix path and module
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Nov 24, 2023
1 parent 39093c8 commit 64caa35
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 340 deletions.
10 changes: 0 additions & 10 deletions qmctorch/utils/plot_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,6 @@ def plot_walkers_traj(eloc, walkers='mean'):
plt.plot(celoc.T[:, i], color=cmap[i])

elif walkers == 'mean':
<<<<<<< HEAD
# plt.plot(eloc, 'o', alpha=1 / nwalkers, c='grey')
plt.plot(np.mean(celoc.T, axis=1), linewidth=5)

else:
plt.plot(eloc[walkers, :], 'o',
alpha=max(1 / nwalkers, 1E-2), c='grey')
plt.plot(celoc.T[traj_index, :])
=======
plt.plot(eloc, 'o', alpha=1 / nwalkers, c='grey')
emean = np.mean(celoc.T, axis=1)
emin = emean.min()
Expand All @@ -105,7 +96,6 @@ def plot_walkers_traj(eloc, walkers='mean'):
else:
raise ValueError('walkers argument must be all or mean')

>>>>>>> master
plt.grid()
plt.xlabel('Monte Carlo Steps')
plt.ylabel('Energy (Hartree)')
Expand Down
178 changes: 0 additions & 178 deletions tests/solver/test_h2.py

This file was deleted.

1 change: 0 additions & 1 deletion tests/solver/test_h2_adf.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
from qmctorch.wavefunction.jastrows.elec_elec import JastrowFactor, PadeJastrowKernel
from qmctorch.wavefunction.slater_jastrow import SlaterJastrow
from qmctorch.scf import Molecule
from qmctorch.solver import SolverSlaterJastrow
from qmctorch.sampler import Metropolis
import unittest

Expand Down
142 changes: 0 additions & 142 deletions tests/solver/test_h2_correlated.py

This file was deleted.

4 changes: 2 additions & 2 deletions tests/solver/test_h2_pyscf_geo_opt.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@


from qmctorch.sampler import Metropolis
from qmctorch.solver import SolverSlaterJastrow
from qmctorch.utils.plot_data import (plot_block, plot_blocking_energy,
plot_correlation_coefficient,
plot_integrated_autocorrelation_time,
plot_walkers_traj)
from qmctorch.scf import Molecule
from qmctorch.wavefunction.slater_jastrow import SlaterJastrow
from qmctorch.wavefunction.jastrows.elec_elec import JastrowFactor, PadeJastrowKernel
from qmctorch.solver import Solver

__PLOT__ = True

Expand Down Expand Up @@ -61,7 +61,7 @@ def setUp(self):
self.opt = optim.Adam(self.wf.parameters(), lr=0.01)

# solver
self.solver = SolverSlaterJastrow(wf=self.wf, sampler=self.sampler,
self.solver = Solver(wf=self.wf, sampler=self.sampler,
optimizer=self.opt)

def test_geo_opt(self):
Expand Down
2 changes: 1 addition & 1 deletion tests/solver/test_h2_pyscf_hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .test_base_solver import BaseTestSolvers

from qmctorch.sampler import Hamiltonian
from qmctorch.solver import SolverSlaterJastrow
from qmctorch.solver import Solver

from qmctorch.scf import Molecule
from qmctorch.wavefunction.slater_jastrow import SlaterJastrow
Expand Down
2 changes: 1 addition & 1 deletion tests/solver/test_h2_pyscf_jacobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from .test_base_solver import BaseTestSolvers

from qmctorch.sampler import Hamiltonian
from qmctorch.solver import SolverSlaterJastrow
from qmctorch.solver import Solver

from qmctorch.scf import Molecule
from qmctorch.wavefunction.slater_jastrow import SlaterJastrow
Expand Down
Loading

0 comments on commit 64caa35

Please sign in to comment.