I am getting the following error, in make_table.py, which I think are new. I am now running Python 3.11.5 packaged by Anaconda. I have used this environment in the past, and it has worked.
(base) G:\Projects\Nina\SCOPE-master>python make_table.py -i results_lipids -t folder
making table for lipidomics
Traceback (most recent call last):
File "G:\Projects\Nina\SCOPE-master\make_table.py", line 115, in <module>
main()
File "G:\Projects\Nina\SCOPE-master\make_table.py", line 104, in main
table = make_table(data, df_results)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "G:\Projects\Nina\SCOPE-master\make_table.py", line 57, in make_table
table.loc[:,key] = column_list
~~~~~~~~~^^^^^^^
File "C:\Users\nmpalmblad\AppData\Local\anaconda3\Lib\site-packages\pandas\core\indexing.py", line 849, in __setitem__
iloc._setitem_with_indexer(indexer, value, self.name)
File "C:\Users\nmpalmblad\AppData\Local\anaconda3\Lib\site-packages\pandas\core\indexing.py", line 1716, in _setitem_with_indexer
take_split_path = not can_hold_element(
^^^^^^^^^^^^^^^^^
File "C:\Users\nmpalmblad\AppData\Local\anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py", line 1744, in can_hold_element
np_can_hold_element(dtype, element)
File "C:\Users\nmpalmblad\AppData\Local\anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py", line 1770, in np_can_hold_element
tipo = _maybe_infer_dtype_type(element)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\nmpalmblad\AppData\Local\anaconda3\Lib\site-packages\pandas\core\dtypes\cast.py", line 976, in _maybe_infer_dtype_type
element = np.asarray(element)
^^^^^^^^^^^^^^^^^^^
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (10870,) + inhomogeneous part.
(base) G:\Projects\Nina\SCOPE-master>
I am getting the following error, in make_table.py, which I think are new. I am now running Python 3.11.5 packaged by Anaconda. I have used this environment in the past, and it has worked.