@Marco447 what is the purpose of the while loop and why are you excepting RunTime Errors?
|
while result is None: |
|
try: |
|
outer_mesh = mesh_maker(outer) |
|
outer_area = outer_mesh.area/100 |
|
inner_mesh = mesh_maker(inner) |
|
inner_area = inner_mesh.area/100 |
|
|
|
volume_in = inner_mesh.volume/1000 |
|
box_vol = np.prod(self.box_dim[:3])/1000 |
|
vol_ves_out = outer_mesh.volume/1000 |
|
volume_out = box_vol - vol_ves_out |
|
result = volume_out |
|
except RuntimeError: |
|
pass |
|
|
@Marco447 what is the purpose of the while loop and why are you excepting RunTime Errors?
shocker/shocker/src/vesicle_data.py
Lines 290 to 304 in 0801a19