AllenCell / AllenCell/nuc-morph-analysis

`figure_1_dataset` workflow fails

Đang mở
#64 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
0
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I get the following error message when I run `pdm run python run_all_manuscript_workflows.py --only figure_1_dataset`.

```
Traceback (most recent call last):
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/.venv/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 3209, in ndim
return a.ndim
AttributeError: 'list' object has no attribute 'ndim'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/nuc_morph_analysis/utilities/workflow_runner.py", line 38, in _runjob
job()
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/run_all_manuscript_workflows.py", line 8, in figure_1_dataset
import nuc_morph_analysis.analyses.dataset_images_for_figures.figure_1_workflow
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/nuc_morph_analysis/analyses/dataset_images_for_figures/figure_1_workflow.py", line 9, in
import nuc_morph_analysis.analyses.dataset_images_for_figures.figure_dataset_formation_and_breakdown
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/nuc_morph_analysis/analyses/dataset_images_for_figures/figure_dataset_formation_and_breakdown.py", line 35, in
df_fmb = figure_helper.process_images_and_add_to_dataframe(df_fmb, df, seg_img_list, raw_img_list)
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/nuc_morph_analysis/analyses/dataset_images_for_figures/figure_helper.py", line 1011, in process_images_and_add_to_dataframe
df_fmb.loc[timepoint, f"seg_{yx_zx_zy}_contours"] = [contour_and_color_list]
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/.venv/lib/python3.9/site-packages/pandas/core/indexing.py", line 818, in __setitem__
iloc._setitem_with_indexer(indexer, value, self.name)
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/.venv/lib/python3.9/site-packages/pandas/core/indexing.py", line 1795, in _setitem_with_indexer
self._setitem_with_indexer_split_path(indexer, value, name)
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/.venv/lib/python3.9/site-packages/pandas/core/indexing.py", line 1833, in _setitem_with_indexer_split_path
elif np.ndim(value) == 2:
File "/home/philip.garrison/workspace/aics/nuc-morph-analysis/.venv/lib/python3.9/site-packages/numpy/core/fromnumeric.py", line 3211, in ndim
return asarray(a).ndim
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 3 dimensions. The detected shape was (1, 1, 2) + inhomogeneous part.
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.