Skip to content

Commit b255776

Browse files
authored
Merge pull request #417 from European-XFEL/missing_trains
Add docs for DataCollection.plot_missing_data
2 parents c285c4c + 6e77979 commit b255776

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

docs/_static/plot_missing_data.png

97.7 KB
Loading

docs/reading_files.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -365,6 +365,14 @@ Missing data does not necessarily mean that something has gone wrong:
365365
some devices send data at less than 10 Hz (the train rate), so they always
366366
have gaps between updates.
367367

368+
You can use :meth:`DataCollection.plot_missing_data` to quickly visualize
369+
sources that have missing data:
370+
371+
.. class:: DataCollection
372+
:noindex:
373+
374+
.. automethod:: plot_missing_data
375+
368376
Data problems
369377
-------------
370378

extra_data/reader.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1321,6 +1321,10 @@ def keys_detail(s, keys, prefix=''):
13211321
def plot_missing_data(self, min_saved_pct=95, expand_instrument=False):
13221322
"""Plot sources that have missing data for some trains.
13231323
1324+
Example output:
1325+
1326+
.. image:: _static/plot_missing_data.png
1327+
13241328
Parameters
13251329
----------
13261330

0 commit comments

Comments
 (0)