<SYSTEM_TASK:>
Given the following text description, write Python code to implement the functionality described below step by step
<END_TASK>
<USER_TASK:>
Description:
 Finding water users and demands
Step1:  Creating new demand models
Step2:  Set active demand
Water users have one active demand and optional inactive demands.
We can specify the active demand for one or more nodes. If the specified demand is note available on a particular node, it will have no effect.
Step3:  Configuring demand parameters
Currently no functionality for the specific demand models...
Time series demands can be configured via 'DemandModel.Order' (assuming the time series demand is the active demand model)
Step4:  Similarly, we can use assign_time_series...
<ASSISTANT_TASK:>
Python Code:
v.model.node.water_users.names()
v.model.node.water_users.demands()
v.model.node.water_users.demands(nodes='IrrigationOnlyForestWU')
Explanation: Finding water users and demands
End of explanation
v.model.node.water_users.add_timeseries?
v.model.node.water_users.add_irrigator?
v.model.node.water_users.add_timeseries('my new timeseries demand',nodes='IrrigationOnlyForestWU')
v.model.node.water_users.demands(nodes='IrrigationOnlyForestWU')
Explanation: Creating new demand models
End of explanation
v.model.node.water_users.set_active_demand('my new timeseries demand')
# SAFE because 'my new timeseries demand' only exists on one node
Explanation: Set active demand
Water users have one active demand and optional inactive demands.
We can specify the active demand for one or more nodes. If the specified demand is note available on a particular node, it will have no effect.
End of explanation
v.model.node.water_users.set_param_values('DemandModel.Order',5,nodes='IrrigationOnlyForestWU')
# Note, the above will not take effect if a function is already being used. Need to cancel the function...
# v.model.node.water_users.clear_function_usage('DemandModel.Order',nodes='IrrigationOnlyForestWU')
Explanation: Configuring demand parameters
Currently no functionality for the specific demand models...
Time series demands can be configured via 'DemandModel.Order' (assuming the time series demand is the active demand model)
End of explanation
# v.model.node.water_users.assign_time_series('DemandModel.Order','col','datasource',nodes='IrrigationOnlyForestWU')
Explanation: Similarly, we can use assign_time_series...
End of explanation
<END_TASK>