uxwizard.views.station package

Submodules

uxwizard.views.station.base module

uxwizard.views.station.base.get_area_geographical_name(sites_set)

Return the geographical name of the area identified by the sites.

Parameters

sites_list (List[ latitude : float, longitude : float ]) – the list if sites; each site must have defined its coordinates, defined in decimal (as opposed to ‘DMS’).

Returns

the name of geographical location of the barycenter, as reported in the ‘nominatim’ database.

Return type

string

uxwizard.views.station.base.get_barycenter_of_coordinates(sites_set)

Return the barycenter of the sites.

Parameters

sites_list (List[ latitude : float, longitude : float ]) – the list if sites; each site must have defined its coordinates, defined in decimal (as opposed to ‘DMS’).

Returns

tuple(latitude – the latitude and longitude of the barycenter of the sites_set.

Return type

float, longitude : float)

uxwizard.views.station.base.get_drawdowns_list(request)
uxwizard.views.station.base.get_intake_elevation(request)
uxwizard.views.station.base.get_pathway_points_list(pathway_dict, sites_dict)
uxwizard.views.station.base.get_pathways_list(request)
uxwizard.views.station.base.get_powertrain_electric(request)
uxwizard.views.station.base.get_powertrain_electricless(request)
uxwizard.views.station.base.get_sites_list(request)
uxwizard.views.station.base.get_step_0_context(request)

uxwizard.views.station.check module

uxwizard.views.station.check.CREATE_AS_CASESTUDY_INPUT = True

Prescribes whether the input data to business should be serialized for use in tests.

uxwizard.views.station.check.get_pipework_dict(request)
uxwizard.views.station.check.init_wizard_session(request)

A placeholder function to make redirects more self-descriptive.

This is the redirection: * “wizard_splash” redirects to “wizard_station_check_start” * “wizard_station_check_start” redirects to “wizard_station_check_step_0”

uxwizard.views.station.check.wizard_step_0(request)

Process get and post for the station.check form.

If the method is GET then load a fresh form inclusive of all data to allow the user draw interactively the station on a leaflet map.

If the method is POST then the request comes from ajax and the response solves the hydraulic check problem (using ‘ruralwater’ business logic) and presents its outcome in html format, returned as a json-repsonse.

uxwizard.views.station.design module

uxwizard.views.station.design.CREATE_AS_CASESTUDY_INPUT = True

Prescribes whether the input data to business should be serialized for use in tests.

uxwizard.views.station.design.do_get_step_0(request)
uxwizard.views.station.design.do_post_step_0(request)
uxwizard.views.station.design.get_daily_demands_dict(request)
uxwizard.views.station.design.init_wizard_session(request)

A placeholder function to make redirects more self-descriptive.

This is the redirection: * “wizard_splash” redirects to “wizard_station_design_start” * “wizard_station_design_start” redirects to “wizard_station_design_step_0”

uxwizard.views.station.design.wizard_step_0(request)