Skip to content

ebrains-cls-interactive/fetch-selected-models

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 

Repository files navigation

fetch-selected-models

Install

pip install -q --upgrade git+https://github.com/ebrains-cls-interactive/fetch-selected-models.git@dev#egg=fetch_selected_models

Usage

from fetch_selected_models import fetcher
models = fetcher.get_model_dict('morphology', 'morphologyAnalysis')
morph_selected = fetcher.display_dropdown(models) # displays the dropdown

Where morphology is the category id and morphologyAnalysis is the usecase id (from usecases-info.json)

Get selected value

selected = morph_selected.value

Extra options

models = fetcher.get_model_dict(category_id, usecase_id, propertie, propertie_name)

propertie: which propertie of the models.json to show propertie_name which text to show in the widget

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published