Skip to content

Commit

Permalink
syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Aug 17, 2020
1 parent ba011d0 commit 8fead83
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions h5x/baseimport.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
from qmctorch.utils import (
plot_energy, plot_data, plot_block, plot_walkers_traj)
import matplotlib.pyplot as plt
import numpy as np

print(r" ____ __ ______________ _")
print(r" / __ \ / |/ / ___/_ __/__ ________/ / ")
print(r"/ /_/ / / /|_/ / /__ / / / _ \/ __/ __/ _ \ ")
print(r"\___\_\/_/ /_/\___/ /_/ \___/_/ \__/_//_/ ")
6 changes: 3 additions & 3 deletions qmctorch/sampler/hamiltonian.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def log_func(func):
return lambda x: -torch.log(func(x))

def __call__(self, pdf, pos=None, with_tqdm=True):
"""Generate walkers followinf HMC
"""Generate walkers following HMC
Arguments:
pdf {callable} -- density to sample
Expand Down Expand Up @@ -102,7 +102,7 @@ def __call__(self, pdf, pos=None, with_tqdm=True):
def _step(U, get_grad, epsilon, L, qinit):
'''Propagates all the walkers over on traj
Args:
pdf (callable): the target dist
U (callable): the target pdf
get_grad (callable) : get the value of the target dist gradient
epsilon (float) : step size
L (int) : number of steps in the traj
Expand Down Expand Up @@ -137,7 +137,7 @@ def _step(U, get_grad, epsilon, L, qinit):
p = -p

# current energy term
Enew = U(q) + 0.5 * (p**2).sum(1)
Enew = U(q) + 0.5 * (p*pS).sum(1)

# metropolix accept/reject
eps = torch.rand(Enew.shape)
Expand Down
2 changes: 1 addition & 1 deletion qmctorch/wavefunction/wf_orbital.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def geometry(self, pos):

def gto2sto(self, plot=False):
"""Fits the AO GTO to AO STO.
The sto have only one basis function per ao
The SZ sto tht have only one basis function per ao
"""

assert(self.ao.radial_type.startswith('gto'))
Expand Down

0 comments on commit 8fead83

Please sign in to comment.