BiaPyX / BiaPy

Open source Python library for building bioimage analysis pipelines
https://BiaPyX.github.io
MIT License
114 stars 28 forks source link

Error when first detection df_patch is null #55

Closed ClementCaporal closed 5 months ago

ClementCaporal commented 5 months ago

Hello!

I had this error message:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'NoneType' object has no attribute 'copy'

coming from

https://github.com/BiaPyX/BiaPy/blob/43eb40a4d1f9b8a9a0cc9fe83a4b682172748a4c/biapy/engine/detection.py#L567-L573

I suppose it happens when the first df_patch is None and df is not instanced yet.