olfactorybulb.utilities

Utility methods.

olfactorybulb.utilities.pick_from_pooled_experimental_distribution(property_id, type='float', save=True)[source]

Picks one value, at random, from the property’s aggregate distribution

Parameters
  • property_id – the id of the property, whose distribution will be used to pick

  • type – the type of value to return e.g. use ‘int’ to round final result to integer

  • save – whether to save the picked result to the database

Returns

olfactorybulb.utilities.pool_experimental_measurements(property_id)[source]

Aggregates the distributions of measurements of the given property and saves the resulting aggregate mean, std, and n to property table

Parameters

property_id – the id of the property to aggregate