Skip to content

Commit 1b949a2

Browse files
committed
[#116] Fixed unit tests 3
1 parent ea4fe89 commit 1b949a2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

bsplines2d/tests/test_input.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1120,11 +1120,13 @@ def _get_operators(bs, nd=None, kind=None, remove=None):
11201120
#######################################################
11211121

11221122

1123-
def _get_mesh(bsplines, nd=None, kind=None):
1123+
def _get_mesh(coll, nd=None, kind=None):
1124+
wm = coll._which_mesh
11241125
return [
1125-
k0 for k0, v0 in bsplines.dobj[bsplines._which_mesh].items()
1126+
k0 for k0, v0 in coll.dobj[wm].items()
11261127
if nd in [None, v0['nd']]
11271128
and kind in [None, v0['type']]
1129+
and coll.ddata[v0['knots'][0]]['units'] != 'rad' # angle mesh
11281130
]
11291131

11301132

0 commit comments

Comments
 (0)