Events filtering in JSON OPL/ITL reader

Closes #19 (closed).

Implement a filter on the

# Filter only MAJIS blocks (default)
read_opl('OPL_file.json')

# Remove filter (no filter)
read_opl('OPL_file.json', only=False)

# Set filter to None (no filter)
read_opl('OPL_file.json', only=None)

# Set filter to 'all' (no filter)
read_opl('OPL_file.json', only='ALL')

# Set filter to a non MAJIS instrument value
read_opl('OPL_file.json', only='COMS')

# Set filter to a non present value (empty result)
read_opl('OPL_file.json', only='FOO')

# Set filter to list of values
read_opl('OPL_file.json', only=['MAJIS', 'COMS'])

# Set filter to an empty value
read_opl('OPL_file.json', only='')

# Set filter with an empty list
read_opl('OPL_file.json', only=[])

The same thing apply to read_itl.

Merge request reports

Loading