Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
choglass committed Jun 5, 2024
1 parent eda8773 commit 547ad56
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 345 deletions.
2 changes: 1 addition & 1 deletion cell2mol/charge_assignment.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ def get_protonation_states_specie(specie: object, debug: int=0) -> list:
elif a.connec == 1:
elemlist[idx] = "Cl"
addedlist[idx] = 1
else:
elif a.connec > 1:
block[idx] = 1
# Nitrogen
elif a.label == "N":
Expand Down
3 changes: 1 addition & 2 deletions cell2mol/new_cell_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,7 @@ def get_updated_indices(sp_idx, new, cell_labels, cell_pos, cell_fracs, debug: i
if n_l == l and np.allclose(n_p, p, atol=1e-4, rtol=1e-2):
if np.allclose(np.remainder(n_f, 1), np.remainder(f, 1), atol=1e-4, rtol=1e-2):
if debug > 2:
print(f"symmtry operation {sp_idx}:", f"atom of new (index: {jdx})", n_l, n_p, n_f, \
f"is the same as the atom of the unit cell (index: {kdx})", l, p, f)
print(f"symmtry operation {sp_idx}:", f"atom of new (index: {jdx})", n_l, n_p, n_f, f"is the same as the atom of the unit cell (index: {kdx})", l, p, f)
indices_lists.append((jdx, kdx))
return indices_lists

Expand Down
214 changes: 79 additions & 135 deletions cell2mol/test/Cell_reconstruction_Assign-Copy1.ipynb

Large diffs are not rendered by default.

244 changes: 159 additions & 85 deletions cell2mol/test/Cell_reconstruction_Assign.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit 547ad56

Please sign in to comment.