def update_pypsa_storage_timeseries(network, storages_to_update=None,
                                    timesteps=None):
    """
    Updates storage time series in pypsa representation.

    This function overwrites p_set and q_set of storage_unit_t attribute of
    pypsa network.
    Be aware that if you call this function with `timesteps` and thus overwrite
    current time steps it may lead to inconsistencies in the pypsa network
    since only storage time series are updated but none of the other time
    series or the snapshots attribute of the pypsa network. Use the function
    :func:`update_pypsa_timeseries` to change the time steps you want to
    analyse in the power flow analysis.
    This function will also raise an error when a storage that is currently
    not in the pypsa representation is added.

    Parameters
    ----------
    network : Network
        The eDisGo grid topology model overall container
    storages_to_update : :obj:`list`, optional
        List with all storages (of type :class:`~.grid.components.Storage`)
        that need to be updated. If None all storages are updated depending on
        mode. See :meth:`~.tools.pypsa_io.to_pypsa` for more information.
    timesteps : :pandas:`pandas.DatetimeIndex<datetimeindex>` or :pandas:`pandas.Timestamp<timestamp>`
        Timesteps specifies which time steps of the storage time series to
        export to pypsa representation. If None all time steps currently
        existing in pypsa representation are updated. If not None current time
        steps are overwritten by given time steps. Default: None.

    """
    _update_pypsa_timeseries_by_type(
        network, type='storage', components_to_update=storages_to_update,
        timesteps=timesteps)
def update_pypsa_storage_timeseries ( network , storages_to_update = None , timesteps = None ) : _update_pypsa_timeseries_by_type ( network , type = 'storage' , components_to_update = storages_to_update , timesteps = timesteps )
Updates storage time series in pypsa representation.

    This function overwrites p_set and q_set of storage_unit_t attribute of
    pypsa network.
    Be aware that if you call this function with `timesteps` and thus overwrite
    current time steps it may lead to inconsistencies in the pypsa network
    since only storage time series are updated but none of the other time
    series or the snapshots attribute of the pypsa network. Use the function
    :func:`update_pypsa_timeseries` to change the time steps you want to
    analyse in the power flow analysis.
    This function will also raise an error when a storage that is currently
    not in the pypsa representation is added.

    Parameters
    ----------
    network : Network
        The eDisGo grid topology model overall container
    storages_to_update : :obj:`list`, optional
        List with all storages (of type :class:`~.grid.components.Storage`)
        that need to be updated. If None all storages are updated depending on
        mode. See :meth:`~.tools.pypsa_io.to_pypsa` for more information.
    timesteps : :pandas:`pandas.DatetimeIndex<datetimeindex>` or :pandas:`pandas.Timestamp<timestamp>`
        Timesteps specifies which time steps of the storage time series to
        export to pypsa representation. If None all time steps currently
        existing in pypsa representation are updated. If not None current time
        steps are overwritten by given time steps. Default: None.