Exemplo n.º 1
0
 def configure(self, time_series, nfft=None):
     """
     Store the input shape to be later used to estimate memory usage.
     Also create the algorithm instance.
     """
     self.input_shape = time_series.read_data_shape()
     log_debug_array(LOG, time_series, "time_series")
     
     ##-------------------- Fill Algorithm for Analysis -------------------##
     self.algorithm = NodeCoherence()
     if nfft is not None:
         self.algorithm.nfft = nfft
Exemplo n.º 2
0
 def get_input_tree(self):
     """
     Return a list of lists describing the interface to the analyzer. This
     is used by the GUI to generate the menus and fields necessary for
     defining a simulation.
     """
     algorithm = NodeCoherence()
     algorithm.trait.bound = self.INTERFACE_ATTRIBUTES_ONLY
     tree = algorithm.interface[self.INTERFACE_ATTRIBUTES]
     for node in tree:
         if node['name'] == 'time_series':
             node['conditions'] = FilterChain(fields=[FilterChain.datatype + '._nr_dimensions'],
                                              operations=["=="], values=[4])
     return tree
 def configure(self, time_series, nfft=None):
     """
     Store the input shape to be later used to estimate memory usage.
     Also create the algorithm instance.
     """
     self.input_time_series_index = time_series
     self.input_shape = (self.input_time_series_index.data_length_1d,
                         self.input_time_series_index.data_length_2d,
                         self.input_time_series_index.data_length_3d,
                         self.input_time_series_index.data_length_4d)
     LOG.debug("Time series shape is %s" % str(self.input_shape))
     # -------------------- Fill Algorithm for Analysis -------------------##
     self.algorithm = NodeCoherence()
     if nfft is not None:
         self.algorithm.nfft = nfft
Exemplo n.º 4
0
 def configure(self, view_model):
     # type: (NodeCoherenceModel) -> None
     """
     Store the input shape to be later used to estimate memory usage.
     Also create the algorithm instance.
     """
     self.input_time_series_index = self.load_entity_by_gid(view_model.time_series.hex)
     self.input_shape = (self.input_time_series_index.data_length_1d,
                         self.input_time_series_index.data_length_2d,
                         self.input_time_series_index.data_length_3d,
                         self.input_time_series_index.data_length_4d)
     self.log.debug("Time series shape is %s" % str(self.input_shape))
     # -------------------- Fill Algorithm for Analysis -------------------##
     self.algorithm = NodeCoherence()
     if view_model.nfft is not None:
         self.algorithm.nfft = view_model.nfft
 def get_traited_datatype(self):
     return NodeCoherence()