Skip to content

Commit

Permalink
Removed unnecessary lines
Browse files Browse the repository at this point in the history
  • Loading branch information
YHordijk committed Apr 10, 2024
1 parent 6ad0440 commit 58159ae
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/tcviewer/screen.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,6 @@ def draw_orbital(self, orb, gridd=None, isovalue=0.03, color1=[0, 0, 1], color2=

# evaluate the orbital on this grid
gridd.values = orb(gridd.points)
print(gridd.values.min(), gridd.values.max())
print((gridd.values**2).sum())
# print(((gridd.values * orb.norm**2 / gridd.spacing[0]**2)**2).sum())
# gridd.values


# and draw the isosurface with phase
self.draw_isosurface(gridd, isovalue=isovalue, color=[color1, color2], material=material, with_phase=True)
Expand Down Expand Up @@ -132,9 +127,9 @@ def draw_molecule(self, mol: str or plams.Molecule, **kwargs):
mol.guess_bonds()

for atom in mol:
sphere = o3d.geometry.TriangleMesh.create_sphere(atom_data.radius(atom.symbol)*kwargs.get('atom_scale', .5), resolution=kwargs.get('atom_resolution', 100))
sphere = o3d.geometry.TriangleMesh.create_sphere(data.atom.radius(atom.symbol)*kwargs.get('atom_scale', .5), resolution=kwargs.get('atom_resolution', 100))
sphere.translate(atom.coords)
sphere = sphere.paint_uniform_color(np.array(atom_data.color(atom.symbol))/255)
sphere = sphere.paint_uniform_color(np.array(data.atom.color(atom.symbol))/255)
sphere.compute_vertex_normals()

self.add_mesh(sphere, material=kwargs.get('atom_material'))
Expand Down Expand Up @@ -180,7 +175,6 @@ def draw_orbital(self, orb, gridd=None, isovalue=0.03, color1=[0, 0, 1], color2=
# evaluate the orbital on this grid
gridd.values = orb(gridd.points)


# and draw the isosurface with phase
self.draw_isosurface(gridd, isovalue=isovalue, color=[color1, color2], material=material, with_phase=True)

Expand Down

0 comments on commit 58159ae

Please sign in to comment.