Skip to content

Commit

Permalink
more verbose warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
natemacfadden committed Apr 25, 2024
1 parent 22722b1 commit bcae96d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/cytools/cone.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,11 @@ def extremal_rays(self, tol=1e-4, verbose=False):
warnings.warn("Minimization failed after multiple attempts. "
"Some rays may not be extremal.")

self._ext_rays = rays[list(ext_rays),:]
try:
self._ext_rays = rays[list(ext_rays),:]
except IndexError as e:
raise Exception(f"Dimension/indexing error rays={rays}; "+\
f"ext_rays={ext_rays}") from e
return self._ext_rays

def extremal_hyperplanes(self, tol=1e-4, verbose=False):
Expand Down

0 comments on commit bcae96d

Please sign in to comment.