Skip to content

Commit

Permalink
pep8 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pawan negi authored and prabhuramachandran committed Sep 27, 2021
1 parent 4d2fbd2 commit 9311db5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pysph/examples/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ def get_all_examples():
basedir = HERE
examples = []
_ignore = [['run.py'], ['ghia_cavity_data.py'], ['db_exp_data.py'],
['fpc_with_packed_cylinder.py'], ['tg_with_packed_particles.py'],
['fpc_with_packed_cylinder.py'],
['tg_with_packed_particles.py'],
['tests', 'test_examples.py'],
['tests', 'test_riemann_solver.py'],
['gas_dynamics', 'shocktube_setup.py'],
Expand Down
4 changes: 2 additions & 2 deletions pysph/tools/particle_packing.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,9 +593,9 @@ def create_surface_from_stl(
import meshio
data = meshio.read(filename, file_format="stl")
triangles = data.cells_dict['triangle']
normals = data.cell_data['facet_normals'][0]
normals = data.cell_data['facet_normals'][0]
xc, yc, zc = [], [], []
xn, yn, zn = normals[:,0], normals[:,1], normals[:,2]
xn, yn, zn = normals[:, 0], normals[:, 1], normals[:, 2]
area = []
for tri in triangles:
centroid = np.average(data.points[tri], axis=0)
Expand Down

0 comments on commit 9311db5

Please sign in to comment.