ocean-data-factory-sweden / kso

Notebooks to upload/download marine footage, connect to a citizen science project, train machine learning models and publish marine biological observations.
GNU General Public License v3.0
5 stars 12 forks source link

Tutorial 8 issue with retrieving data from GU project on zooniverse #307

Closed Bergylta closed 10 months ago

Bergylta commented 10 months ago

Before submitting a bug report, please be aware that your issue must be reproducible with all of the following, otherwise it is non-actionable, and we can not help you:

If this is a custom dataset/training question you must include your train*.jpg, test*.jpg and results.png figures, or we can not help you. You can generate these with utils.plot_results().

🐛 Bug

A clear and concise description of what the bug is.

To Reproduce (REQUIRED)

Input: node: t4:1

pp.choose_zoo_workflows()

Output:

Number of workflows:
1
Workflow name: #0

GU_tagging_gobies_expert
Subject type: #0

clip 
Minimum workflow version: #0

1.0
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
File /usr/src/app/kso-dev/kso_utils/widgets.py:552, in choose_workflows.<locals>.on_change(change)
    550 if change["name"] == "value":
    551     clear_output()
--> 552     workflow_version.options = choose_w_version(
    553         workflows_df, change["new"]
    554     )[1]
    555     workflow_name.observe(on_change)

File /usr/src/app/kso-dev/kso_utils/widgets.py:503, in choose_w_version(workflows_df, workflow_id)
    491     w_version = widgets.Dropdown(
    492         options=list(map(float, versions_available)),
    493         value=float(versions_available[0]),
   (...)
    499         style={"description_width": "initial"},
    500     )
    502 else:
--> 503     raise ValueError("There are no versions available for this workflow.")
    505 # display(w_version)
    506 return w_version, list(map(float, versions_available))

ValueError: There are no versions available for this workflow.

Expected behavior

A clear and concise description of what you expected to happen.

Environment

If applicable, add screenshots to help explain your problem.

Additional context

I think this might have something to do with it as well image