BGO

Module for analyzing data from the BGO shields

class gripspy.science.bgo.BGOEventData(telemetry_file=None, save_file=None)[source]

Class for analyzing event data from the BGO shields

Parameters:
  • telemetry_file (str (or list)) – The name of the telemetry file to analyze. If None is specified, a save file must be specified.
  • save_file (str (or list)) – The name of a save file from a telemetry file that was previously parsed.

Notes

event_time is stored in 10-ns steps

append(other)[source]

Append the information in another BGOEventData instance

c

Shorthand for the channel attribute

e

Shorthand for the event_time attribute

l

Shorthand for the level attribute

l0

Indices for the events of crossing threshold level 0

l1

Indices for the events of crossing threshold level 1

l2

Indices for the events of crossing threshold level 2

l3

Indices for the events of crossing threshold level 3

save(save_file=None, use_current_directory=False)[source]

Save the parsed data for future reloading. The data is stored in gzip-compressed binary pickle format.

Parameters:
  • save_file (str) – The name of the save file to create. If none is provided, the default is the name of the telemetry file with the extension ”.bgoe.pgz” appended if a single telemetry file is the source.
  • use_current_directory (bool) – If True, remove any directory specification from save_file

Notes

Save files may not be compatible between Python 2 and 3

class gripspy.science.bgo.BGOCounterData(telemetry_file=None, save_file=None)[source]

Class for analyzing event data from the BGO shields

Parameters:
  • telemetry_file (str (or list)) – The name of the telemetry file to analyze. If None is specified, a save file must be specified.
  • save_file (str (or list)) – The name of a save file from a telemetry file that was previously parsed.
append(other)[source]

Append the information in another BGOCounterData instance

c

Shorthand for the channel_count attribute

l

Shorthand for the channel_livetime attribute

save(save_file=None, use_current_directory=False)[source]

Save the parsed data for future reloading. The data is stored in gzip-compressed binary pickle format.

Parameters:
  • save_file (str) – The name of the save file to create. If none is provided, the default is the name of the telemetry file with the extension ”.bgoc.pgz” appended if a single telemetry file is the source.
  • use_current_directory (bool) – If True, remove any directory specification from save_file

Notes

Save files may not be compatible between Python 2 and 3

t

Shorthand for the counter_time attribute

tl

Shorthand for the total_livetime attribute

v

Shorthand for the veto_count attribute