Skip to content

Commit

Permalink
[#829] More robust detection of parallel cameras
Browse files Browse the repository at this point in the history
  • Loading branch information
Didou09 committed Sep 14, 2023
1 parent 52a3704 commit ead1e23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tofu/data/_class7_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def _camera_1d_check(
raise Exception(msg)

# particular case: scalar because common to all
c0 = all([np.isscalar(vv[1]) for vv in lv])
c0 = all([np.isscalar(vv[1]) or np.array(vv[1]).size == 1 for vv in lv])
if c0:
parallel = True
nin, e0, e1 = ds._generic_check._check_vectbasis(
Expand Down

0 comments on commit ead1e23

Please sign in to comment.