Skip to content

Commit

Permalink
Cleaning up CodeFactor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
saforem2 committed Apr 14, 2022
1 parent e5b52da commit a95b22a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 3 additions & 5 deletions src/l2hmc/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,11 @@ def build_lattice(self):
if framework == 'pytorch':
from l2hmc.lattice.u1.pytorch.lattice import LatticeU1
return LatticeU1(nchains, tuple(latvolume))
elif framework == 'tensorflow':
if framework == 'tensorflow':
from l2hmc.lattice.u1.tensorflow.lattice import LatticeU1
return LatticeU1(nchains, tuple(latvolume))
else:
raise ValueError(
f'Unexpected value for `framework`: {framework}'
)

raise ValueError(f'Unexpected value for `framework`: {framework}')

if self.config.dynamics.group == 'SU3':
if framework == 'pytorch':
Expand Down
5 changes: 0 additions & 5 deletions src/l2hmc/lattice/su3/tensorflow/lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ def _plaquette(self, x: Tensor, u: int, v: int):
xvu = self.g.mul(x[:, v], tf.roll(x[:, u], shift=-1, axis=v + 1))
return self.g.trace(self.g.mul(xuv, xvu, adjoint_b=True))

def _plaq(self, x: Tensor, d: int, u: int, v: int):
"""Calculate the 1x1 square plaquette
Return: U[μ](x) * U[ν](x+μ) * U†[μ](x+ν) * U†[ν](x)"""
pass

def _wilson_loops(
self,
x: Tensor,
Expand Down

0 comments on commit a95b22a

Please sign in to comment.