pywfm.IWFMModel._get_n_locations#

IWFMModel._get_n_locations(location_type_id)#

private method returning the number of locations for a specified location type

Parameters:

location_type_id (int) – identification number used by IWFM for a particular location type e.g elements, nodes, subregions, etc.

Returns:

number of locations for the location type specified

Return type:

int

Note

This is a generic version to get the number of locations. Many location types already have a dedicated procedure for doing this