Skip to content

Commit

Permalink
improve computation of optimal cref value in case of larger numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickscholz committed Oct 17, 2024
1 parent 795b154 commit 9288721
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tripyview/sub_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5853,7 +5853,7 @@ def do_setupcinfo(cinfo, data, do_rescale, mesh=None, tri=None, do_vec=False,
new_cref = np.around(cref, ini_dez-dez)
#print(prev_cref, new_cref, dez, ini_dez-dez)
#if (new_cref<cref-dc/10 or new_cref>cref+dc/10 or prev_cref==new_cref) and dez!=0:
if (new_cref<cref-dc/10 or new_cref>cref+dc/10 or dez>10) and dez!=0:
if (new_cref<cref-dc/10 or new_cref>cref+dc/10 or dez>25) and dez!=0:
break
else:
dez=dez+1
Expand Down

0 comments on commit 9288721

Please sign in to comment.