Skip to content

Commit

Permalink
Merge pull request #417 from European-XFEL/missing_trains
Browse files Browse the repository at this point in the history
Add docs for DataCollection.plot_missing_data
  • Loading branch information
JamesWrigley authored Jun 8, 2023
2 parents c285c4c + 6e77979 commit b255776
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Binary file added docs/_static/plot_missing_data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 8 additions & 0 deletions docs/reading_files.rst
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ Missing data does not necessarily mean that something has gone wrong:
some devices send data at less than 10 Hz (the train rate), so they always
have gaps between updates.

You can use :meth:`DataCollection.plot_missing_data` to quickly visualize
sources that have missing data:

.. class:: DataCollection
:noindex:

.. automethod:: plot_missing_data

Data problems
-------------

Expand Down
4 changes: 4 additions & 0 deletions extra_data/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,10 @@ def keys_detail(s, keys, prefix=''):
def plot_missing_data(self, min_saved_pct=95, expand_instrument=False):
"""Plot sources that have missing data for some trains.
Example output:
.. image:: _static/plot_missing_data.png
Parameters
----------
Expand Down

0 comments on commit b255776

Please sign in to comment.