psana.psexp.null_ds¶
NullDataSource is returned by DataSource to MPI ranks that read no data:
with shmem=, the first PS_SRV_NODES ranks; with exp= in MPI mode with
more than one rank, every rank that is not an smd0, eb or bd rank (see
psana.datasource). Its runs() yields one NullRun, which
has no events and no steps. is_srv() returns True, and unique_user_rank()
and is_bd() return False.
psana.psexp.null_ds ¶
A data source and run that contain no data.
psana.DataSource returns NullDataSource to MPI ranks that do not read data (for example the
smalldata server ranks).
NullRun ¶
NullRun()
Bases: object
Run stand-in with no data.
expt and runnum are None, epicsinfo and detinfo are empty dicts, and the event and step
iterators are empty.
NullDataSource ¶
NullDataSource(*args, **kwargs)
Bases: DataSourceBase
Data source for ranks that read no data; runs() yields one NullRun.
The constructor passes the keyword arguments to DataSourceBase.__init__, creates a
SmallData object from self.smalldata_kwargs, calls setup_psplot_live() on smalldata rank
0, and starts the Prometheus client with the MPI world rank. __del__ stops the Prometheus
client.