Skip to content

Commit 2ce49d2

Browse files
committed
remove unused self.atoms
1 parent 42f0805 commit 2ce49d2

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

netobs/adaptors/deepsolid_vmc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def restore(
8282
hartree_fock.init_scf()
8383
klist = hartree_fock.klist
8484

85-
self.atoms = atoms = simulation_cell.original_cell.atom_coords()
85+
atoms = simulation_cell.original_cell.atom_coords()
8686
charges = simulation_cell.original_cell.atom_charges()
8787
latvec = jnp.asarray(simulation_cell.original_cell.lattice_vectors())
8888
self.orig_dist = MinimalImageDistance(latvec)

netobs/adaptors/ferminet_vmc.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ def restore(
104104
)
105105
)
106106

107-
self.atoms = atoms = jnp.stack(
108-
[jnp.array(atom.coords) for atom in cfg.system.molecule]
109-
)
107+
atoms = jnp.stack([jnp.array(atom.coords) for atom in cfg.system.molecule])
110108
charges = jnp.array([atom.charge for atom in cfg.system.molecule])
111109

112110
self.kinetic_energy = make_kinetic_energy(

netobs/adaptors/simple_hydrogen.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ def restore(
5858
axis=-1,
5959
)
6060

61-
self.atoms = jnp.array([[0.0, 0.0, 0.0]])
6261
system = MolecularSystem(
63-
atoms=self.atoms, charges=jnp.array([1]), spins=(1, 0), ndim=3
62+
atoms=jnp.array([[0.0, 0.0, 0.0]]),
63+
charges=jnp.array([1]),
64+
spins=(1, 0),
65+
ndim=3,
6466
)
6567
aux_data = HydrogenAuxData(mcmc_width=jnp.array([0.6]))
6668
return (jnp.array([0]), data, system, aux_data)

0 commit comments

Comments
 (0)