biigle / reports

:m: BIIGLE module to generate reports for projects and volumes
GNU General Public License v3.0
1 stars 2 forks source link

Fix error with CSV to XLSX script #110

Closed mzur closed 5 months ago

mzur commented 5 months ago

There was this error:

The report script 'csvs_to_xlsx' failed with exit code 1:
    Traceback (most recent call last):
      File "/var/www/vendor/biigle/reports/src/config/../resources/scripts/csvs_to_xlsx.py", line 17, in <module>
        rows = np.array(list(csv.reader(f)))
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (680,) + inhomogeneous part.

in the Support/Reports/Volumes/ImageAnnotations/AbundanceReportGenerator.php. This was caused by the report ID 14743 of volume 7607 ("separateLabelTrees":true). There is also another affected report (ID 14750 volume 1200).