Skip to content

Commit

Permalink
Update pypolar_classes.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cchandre committed Oct 18, 2024
1 parent 35696d7 commit a0aa5a4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pypolar/pypolar_classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,8 416,11 @@ def __init__(self, method:str, label:str='no distortions') -> None:
vars = (file.stem, 0)
if vars[0].startswith('Calib'):
self.invKmat = np.linalg.pinv(np.genfromtxt(str(folder / (vars[0] '.txt')), dtype=np.float64))
if self.invKmat.shape != (int(method[-2]) 1, 4):
showerror('Calibration data', 'Incorrect calibration data\n Download another file')
vars = (' ', 0)
else:
showerror('Calibration data', 'Incorrect calibration data\n Download another file', icon='error')
showerror('Calibration data', 'Incorrect calibration data\n Download another file')
vars = (' ', 0)
else:
vars = (' ', 0)
Expand Down

0 comments on commit a0aa5a4

Please sign in to comment.