We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d98fb9 commit 82c24f4Copy full SHA for 82c24f4
LoopStructural/utils/_surface.py
@@ -96,9 +96,12 @@ def fit(
96
"Number of isosurfaces must be greater than 1. Either use a positive integer or provide a list or float for a specific isovalue."
97
)
98
elif isinstance(values, int):
99
+ var = np.nanmax(all_values) - np.nanmin(all_values)
100
+ # buffer slices by 5% to make sure that we don't get isosurface does't exist issues
101
+ buffer = var * 0.05
102
isovalues = np.linspace(
- np.nanmin(all_values) + np.finfo(float).eps,
- np.nanmax(all_values) - np.finfo(float).eps,
103
+ np.nanmin(all_values) + buffer,
104
+ np.nanmax(all_values) - buffer,
105
values,
106
107
logger.info(f'Isosurfacing at values: {isovalues}')
0 commit comments