Skip to content

Commit

Permalink
Fix error with return_surface=True and n_bins=1
Browse files Browse the repository at this point in the history
  • Loading branch information
RubenChM committed Dec 9, 2024
1 parent bfdda89 commit 6da77c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lipyphilic/analysis/memb_thickness.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ def _single_frame(self):
self.results.memb_thickness[self._frame_index] = thickness

if self._return_surface:
self.memb_thickness_grid[self._frame_index] = upper_surface - lower_surface
self.memb_thickness_grid[self._frame_index] = upper_surface - lower_surface if self.n_bins > 1 else thickness

def _interpolate(self, surface):
"""Interpolate the leaflet intrinsic surface.
Expand Down

0 comments on commit 6da77c1

Please sign in to comment.