You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thanks for the contribution to this excellent tool.
I am trying to run the example code, but it can not work.
Is the reason that the version of the used python package is various? If that's true, could you share the proper version of the related python package?
D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\reference_q4.py in generate_reference_Q4(node_coords, mesh, im, settings, norm, image_id)
139
140
--> 141 K = np.linalg.inv(K)
142
143 # TODO: Fill in the rest
<array_function internals> in inv(*args, **kwargs)
Hello, thanks for the contribution to this excellent tool.
I am trying to run the example code, but it can not work.
Is the reason that the version of the used python package is various? If that's true, could you share the proper version of the related python package?
LinAlgError Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_23104\955196646.py in
8 settings = dic.DICInput(mesh,images)
9 job = dic.DICAnalysis(settings)
---> 10 dic_results = job.run()
11
12 fields = dic.Fields(dic_results)
D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\correlate.py in run(self)
373
374 """
--> 375 node_x, node_y, reference_stack, Ic_stack = self.solve()
376
377 return DICOutput(node_x, node_y, self.input, ref_stack=reference_stack, Ic_stack=Ic_stack)
D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\correlate.py in solve(self)
388 else:
389 node_position, reference_stack, Ic_Stack = correlate(self.input, correlate_img_to_ref_q4,
--> 390 generate_reference_Q4)
391
392 # TODO: Remove the need of transposing the matrices
D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\correlate.py in correlate(inputs, correlator, reference_gen)
182 node_position_t.append(node_coords)
183
--> 184 reference = gen_ref(node_coords, mesh, images[0], settings, image_id=0)
185
186 # Correlate the image frames
D:\software\anaconda3\envs\muDIC1\lib\site-packages\muDIC\solver\reference_q4.py in generate_reference_Q4(node_coords, mesh, im, settings, norm, image_id)
139
140
--> 141 K = np.linalg.inv(K)
142
143 # TODO: Fill in the rest
<array_function internals> in inv(*args, **kwargs)
D:\software\anaconda3\envs\muDIC1\lib\site-packages\numpy\linalg\linalg.py in inv(a)
543 signature = 'D->D' if isComplexType(t) else 'd->d'
544 extobj = get_linalg_error_extobj(_raise_linalgerror_singular)
--> 545 ainv = _umath_linalg.inv(a, signature=signature, extobj=extobj)
546 return wrap(ainv.astype(result_t, copy=False))
547
D:\software\anaconda3\envs\muDIC1\lib\site-packages\numpy\linalg\linalg.py in _raise_linalgerror_singular(err, flag)
86
87 def _raise_linalgerror_singular(err, flag):
---> 88 raise LinAlgError("Singular matrix")
89
90 def _raise_linalgerror_nonposdef(err, flag):
LinAlgError: Singular matrix
The text was updated successfully, but these errors were encountered: