Skip to content

Commit

Permalink
Merge pull request #169 from sparks-baird/rm-code-graveyard
Browse files Browse the repository at this point in the history
rm code graveyard in core.py
  • Loading branch information
sgbaird authored Jul 8, 2022
2 parents 4ae7088 + 35b8977 commit 0783bab
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions src/xtal2png/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1191,28 +1191,3 @@ def setup_logging(loglevel):
logging.basicConfig(
level=loglevel, stream=sys.stdout, format=logformat, datefmt="%Y-%m-%d %H:%M:%S"
)


# %% Code Graveyard
# relax_results = relaxer.relax()
# final_structure = relax_results["final_structure"]
# final_energy = relax_results["trajectory"].energies[-1] / 2

# print(
# f"Relaxed lattice parameter is
# {final_structure.lattice.abc[0]:.3f} Å"
# )
# # TODO: print the initial energy as well (assuming it's available)
# print(f"Final energy is {final_energy.item(): .3f} eV/atom")

# uae = np.array(unscaled_atom_encodings[i][:ns])
# site_ids = np.where(uae > 0)

# at = at[site_ids]
# fr = fr[site_ids]

# # TODO: apply num_sites mask
# _, num_sites_upp = self.num_sites_range
# mask = np.zeros(self.max_sites, dtype=bool)
# mask[:num_sites_upp, :num_sites_upp] = True
# mask = ~mask

0 comments on commit 0783bab

Please sign in to comment.