Error in running example file, how to solve this error?
Opened this issue · 0 comments
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\PPShah.conda\envs\pyclone-vi\Scripts\pyclone-vi.exe_main.py", line 7, in
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\pyclone_vi\cli.py", line 113, in fit
pyclone_vi.run.fit(kwargs)
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\pyclone_vi\run.py", line 29, in fit
log_p_data, mutations, samples = load_data(in_file, density, num_grid_points, precision=precision)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\pyclone_vi\data.py", line 11, in load_data
data, mutations, samples = load_pyclone_data(file_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\pyclone_vi\data.py", line 86, in load_pyclone_data
SampleDataPoint(a, b, cn, mu, log_pi, row['tumour_content'])
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\numba\experimental\jitclass\base.py", line 124, in call
return cls._ctor(bind.args[1:], bind.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\numba\core\dispatcher.py", line 468, in _compile_for_args
error_rewrite(e, 'typing')
File "C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\numba\core\dispatcher.py", line 409, in error_rewrite
raise e.with_traceback(None)
numba.core.errors.TypingError: Failed in nopython mode pipeline (step: nopython frontend)
Internal error at <numba.core.typeinfer.CallConstraint object at 0x00000206239CD290>.
Failed in nopython mode pipeline (step: native lowering)
Can only insert i64 at [4] in {i8, i8, i64, i64, i64, [2 x i64], [2 x i64]}: got i32
File ".....conda\envs\pyclone-vi\Lib\site-packages\pyclone_vi\data.py", line 184:
def init(self, a, b, cn, mu, log_pi, t):
During: lowering "(self).cn = cn" at C:\Users\PPShah.conda\envs\pyclone-vi\Lib\site-packages\pyclone_vi\data.py (184)
During: resolving callee type: jitclass.SampleDataPoint#2062263a190<a:int64,b:int64,cn:array(int64, 2d, A),mu:array(float64, 2d, A),log_pi:array(float64, 1d, A),t:float64>
During: typing of call at (3)
Enable logging at debug level for details.
File "", line 3: