pysepal.sepalwidgets.inputs.LoadTableField#
- class pysepal.sepalwidgets.inputs.LoadTableField(*args, **kwargs)[source]#
A custom input widget to load points data.
The user will provide a csv or txt file containing labeled dataset. The relevant columns (lat, long and id) can then be identified in the updated select. Once everything is set, the widget will populate itself with a json dict. {pathname, id_column, lat_column,lng_column}.
- Parameters:
label (str) – the label of the widget
kwargs – any parameter from a v.Col. If set, ‘children’ and ‘v_model’ will be overwritten.
Attributes
IdSelectinput to select the id column
LatSelectinput to select the lat column
LngSelectinput to select the lng column
default_v_modelxx, 'lat_column': xx, 'lng_column': xx}
fileInputThe file input to select the .csv or .txt file
Methods
- LoadTableField.__init__(label='Table file', **kwargs)[source]#
A custom input widget to load points data.
The user will provide a csv or txt file containing labeled dataset. The relevant columns (lat, long and id) can then be identified in the updated select. Once everything is set, the widget will populate itself with a json dict. {pathname, id_column, lat_column,lng_column}.
- Parameters:
label (str) – the label of the widget
kwargs – any parameter from a v.Col. If set, ‘children’ and ‘v_model’ will be overwritten.
- Return type:
None