def update_histogram_dropdown(db_name, collection_name, histogram_name): coll = spdb[db_name][collection_name] histogram = coll.find_one({'name': histogram_name}) layout = go.Layout(title = histogram['name'], yaxis = {'type': 'log', 'autorange': True}) print(histogram['name']) return to_plotly(histogram, layout = layout)
def update_default_histograms(db_name, collection_name): coll = spdb[db_name][collection_name] histogram = coll.find_one({'name': 'PrimaryCosZenith'}) return to_plotly(histogram)
def update_histogram_dropdown(db_name, collection_name, histogram_name): coll = spdb[db_name][collection_name] histogram = coll.find_one({'name': histogram_name}) return to_plotly(histogram)
def update_default_histograms(db_name, collection_name): coll = spdb[db_name][collection_name] histogram = coll.find_one({'name': 'LogQtot'}) return to_plotly(histogram)
def update_default_histograms(db_name, collection_name): coll = spdb[db_name][collection_name] histogram = coll.find_one({'name': 'InIceDOMLaunchTime'}) return to_plotly(histogram)
def update_default_histograms(db_name, collection_name): coll = spdb[db_name][collection_name] histogram = coll.find_one({'name': 'SecondaryMultiplicity'}) return to_plotly(histogram)