Skip to content

Commit

Permalink
codacy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoRenaud committed Nov 29, 2023
1 parent 51798b6 commit 2905be8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions .prospector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ pep257:
D212, # Multi-line docstring summary should start at the first line
D213, # Multi-line docstring summary should start at the second line
D404, # First word of the docstring should not be This
R0913, # too many arguments
]
1 change: 1 addition & 0 deletions qmctorch/solver/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def run_epochs(self, nepoch):

# init the loss in case we have nepoch=0
cumulative_loss = 0
min_loss = torch.inf

# loop over the epoch
for n in range(nepoch):
Expand Down
2 changes: 1 addition & 1 deletion qmctorch/utils/plot_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def plot_block(eloc):
eloc (np.array): values of the local energy
"""

nstep, nwalkers = eloc.shape
nstep, _ = eloc.shape
max_block_size = nstep // 2

evar = []
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
from .fully_connected_jastrow_kernel import FullyConnectedJastrowKernel
from .jastrow_kernel_electron_nuclei_base import JastrowKernelElectronNucleiBase
from .pade_jastrow_kernel import PadeJastrowKernel

__all__ = [
"FullyConnectedJastrowKernel",
"JastrowKernelElectronNucleiBase",
"PadeJastrowKernel"
]
2 changes: 1 addition & 1 deletion qmctorch/wavefunction/jastrows/graph/mgcn/mgcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class MGCNGNN(nn.Module):
Difference between two adjacent centers in RBF expansion. Default to 0.1.
"""

def __init__(
def __init__( # pylint: disable=to-many-arguments
self,
feats=128,
n_layers=3,
Expand Down

0 comments on commit 2905be8

Please sign in to comment.