Skip to content

Add AnalysisData().available_tags and start setting up "pretty" summaries using rich

Aidan Richard Wiederhold requested to merge aiwieder/api into master

This should handle the first point of #6 (closed)

e.g.

from apd import AnalysisData
datasets = AnalysisData("b2oc", "b02dkpi")
print(datasets.available_tags)

will print out a dictionary for which each key is a tag from the given AnalysisData() and each value is a list of each unique value associated with the tag.

{'config': ['lhcb', 'mc'], 'datatype': ['2012', '2017', '2018', '2011', '2016', '2015'], 'eventtype': ['90000000', '11166112', '11166111', '11164057', '11164047', '11166073', '11166071', '11164072', '11166072', '15166275', '15166120', '13164611', '15166519', '13166078', '11166076', '15166476', '11364423', '11166532', '15166075', '11164621', '11166274', '11166117', '13166272', '13166334', '15166520', '13166119', '13164079', '13364401', '13166473', '15364420', '15166478', '15164611', '11166477', '13166472', '13166477', '11166079', '11166277', '15166119', '11166276', '15166277', '15166078', '11364422', '11166533', '11166075', '15164022', '15166475', '11166476', '15364410', '13166471', '13166534', '15166079', '11166078', '13166535', '13164078', '13364400', '15166479', '11166335', '11164088', '15164080', '11166077', '11166330', '13166278', '11166475', '15166317', '13166331', '11166271', '15166474', '13166277', '15166319', '13166120', '13166530', '15166318', '13166271', '11166120', '11166118', '11166534', '11166333', '11166535', '11166530', '13166273', '15166276', '13166479', '11166331', '11166473', '13166531', '15166320', '11166279', '13164076', '13166478', '11166278', '15166279', '11166531', '11166479', '11166474', '11166275', '11166272', '11166478', '11166332', '15166518', '15166517', '15166077', '13166330', '13166279', '15166118', '11164089', '15166076', '13166335', '11166119', '15166117', '15164070', '11166273', '11164611', '13166077', '11166471', '11166334', '11166074', '11166472', '15166477', '13166079', '15166278', '15166274', '15166074', '11364424', '11364425', '13364402', '13364403', '11164056', '11164055', '11164063', '11364420', '11364421', '11164601', '11164086', '15164051', '15164061', '15164012', '15364400', '15364401', '15164601', '13164601'], 'polarity': ['magup', 'magdown'], 'version': ['v0r0p2180615', 'v0r0p2297458', 'v0r0p2358939', 'v0r0p2437974', 'v0r0p2518507', 'v0r0p2552694', 'v0r0p2752886', 'v0r0p2794507', 'v0r0p2847846', 'v0r0p2970193'], 'name': ['2012_magup_restripped', '2017_magdown_restripped', '2012_magdown_restripped', '2018_magdown_restripped', '2018_magdown', '2011_magup', '2016_magdown', '2011_magdown', '2018_magup_restripped', '2011_magdown_restripped', '2015_magdown', '2011_magup_restripped', '2017_magup_restripped', '2017_magup', '2017_magdown', '2012_magdown', '2016_magup', '2015_magup', '2012_magup', '2018_magup', '2018_11166112_magdown', '2018_11166111_magup',...]}
Edited by Aidan Richard Wiederhold

Merge request reports