<s> '''<STR_LIT>''' <EOL> from __future__ import absolute_import , division , print_function <EOL> from datetime import datetime <EOL> from neo . core . container import Container , unique_objs <EOL> class Block ( Container ) : <EOL> '''<STR_LIT>''' <EOL> _container_child_objects = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> _child_properties = ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> _recommended_attrs = ( ( ( '<STR_LIT>' , datetime ) , <EOL> ( '<STR_LIT>' , datetime ) , <EOL> ( '<STR_LIT:index>' , int ) ) + <EOL> Container . _recommended_attrs ) <EOL> _repr_pretty_attrs_keys_ = ( Container . _repr_pretty_attrs_keys_ + <EOL> ( '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT:index>' ) ) <EOL> _repr_pretty_containers = ( '<STR_LIT>' , ) <EOL> def __init__ ( self , name = None , description = None , file_origin = None , <EOL> file_datetime = None , rec_datetime = None , index = None , <EOL> ** annotations ) : <EOL> '''<STR_LIT>''' <EOL> super ( Block , self ) . __init__ ( name = name , description = description , <EOL> file_origin = file_origin , ** annotations ) <EOL> self . file_datetime = file_datetime <EOL> self . rec_datetime = rec_datetime <EOL> self . index = index <EOL> @ property <EOL> def data_children_recur ( self ) : <EOL> '''<STR_LIT>''' <EOL> return tuple ( unique_objs ( super ( Block , self ) . data_children_recur ) ) <EOL> def list_children_by_class ( self , cls ) : <EOL> '''<STR_LIT>''' <EOL> return unique_objs ( super ( Block , self ) . list_children_by_class ( cls ) ) <EOL> @ property <EOL> def list_units ( self ) : <EOL> '''<STR_LIT>''' <EOL> return self . list_children_by_class ( '<STR_LIT>' ) <EOL> @ property <EOL> def list_recordingchannels ( self ) : <EOL> '''<STR_LIT>''' <EOL> return self . list_children_by_class ( '<STR_LIT>' ) </s>
