Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _set_random_access_strategies(self):
if self.in_memory and self._Y_source is not None:
self._ra_cuboid = self._Y_source._ra_cuboid
self._ra_linear_strategy = self._Y_source._ra_linear_strategy
self._ra_linear_itraj_strategy = self._Y_source._ra_linear_itraj_strategy
self._ra_jagged = self._Y_source._ra_jagged
self._is_random_accessible = True
elif self.data_producer is not None:
self._ra_jagged = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_jagged)
self._ra_linear_itraj_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_itraj_strategy)
self._ra_linear_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_strategy)
self._ra_cuboid = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_cuboid)
self._is_random_accessible = self.data_producer._is_random_accessible
else:
self._ra_jagged = self._ra_linear_itraj_strategy = self._ra_linear_strategy \
= self._ra_cuboid = None
self._is_random_accessible = False
def _set_random_access_strategies(self):
if self.in_memory and self._Y_source is not None:
self._ra_cuboid = self._Y_source._ra_cuboid
self._ra_linear_strategy = self._Y_source._ra_linear_strategy
self._ra_linear_itraj_strategy = self._Y_source._ra_linear_itraj_strategy
self._ra_jagged = self._Y_source._ra_jagged
self._is_random_accessible = True
elif self.data_producer is not None:
self._ra_jagged = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_jagged)
self._ra_linear_itraj_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_itraj_strategy)
self._ra_linear_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_strategy)
self._ra_cuboid = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_cuboid)
self._is_random_accessible = self.data_producer._is_random_accessible
else:
self._ra_jagged = self._ra_linear_itraj_strategy = self._ra_linear_strategy \
= self._ra_cuboid = None
self._is_random_accessible = False
def _set_random_access_strategies(self):
if self.in_memory and self._Y_source is not None:
self._ra_cuboid = self._Y_source._ra_cuboid
self._ra_linear_strategy = self._Y_source._ra_linear_strategy
self._ra_linear_itraj_strategy = self._Y_source._ra_linear_itraj_strategy
self._ra_jagged = self._Y_source._ra_jagged
self._is_random_accessible = True
elif self.data_producer is not None:
self._ra_jagged = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_jagged)
self._ra_linear_itraj_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_itraj_strategy)
self._ra_linear_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_strategy)
self._ra_cuboid = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_cuboid)
self._is_random_accessible = self.data_producer._is_random_accessible
else:
self._ra_jagged = self._ra_linear_itraj_strategy = self._ra_linear_strategy \
= self._ra_cuboid = None
self._is_random_accessible = False
def _set_random_access_strategies(self):
if self.in_memory and self._Y_source is not None:
self._ra_cuboid = self._Y_source._ra_cuboid
self._ra_linear_strategy = self._Y_source._ra_linear_strategy
self._ra_linear_itraj_strategy = self._Y_source._ra_linear_itraj_strategy
self._ra_jagged = self._Y_source._ra_jagged
self._is_random_accessible = True
elif self.data_producer is not None:
self._ra_jagged = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_jagged)
self._ra_linear_itraj_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_itraj_strategy)
self._ra_linear_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_strategy)
self._ra_cuboid = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_cuboid)
self._is_random_accessible = self.data_producer._is_random_accessible
else:
self._ra_jagged = self._ra_linear_itraj_strategy = self._ra_linear_strategy \
= self._ra_cuboid = None
self._is_random_accessible = False
def _set_random_access_strategies(self):
if self.in_memory and self._Y_source is not None:
self._ra_cuboid = self._Y_source._ra_cuboid
self._ra_linear_strategy = self._Y_source._ra_linear_strategy
self._ra_linear_itraj_strategy = self._Y_source._ra_linear_itraj_strategy
self._ra_jagged = self._Y_source._ra_jagged
self._is_random_accessible = True
elif self.data_producer is not None:
self._ra_jagged = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_jagged)
self._ra_linear_itraj_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_itraj_strategy)
self._ra_linear_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_strategy)
self._ra_cuboid = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_cuboid)
self._is_random_accessible = self.data_producer._is_random_accessible
else:
self._ra_jagged = self._ra_linear_itraj_strategy = self._ra_linear_strategy \
= self._ra_cuboid = None
self._is_random_accessible = False
def _set_random_access_strategies(self):
if self.in_memory and self._Y_source is not None:
self._ra_cuboid = self._Y_source._ra_cuboid
self._ra_linear_strategy = self._Y_source._ra_linear_strategy
self._ra_linear_itraj_strategy = self._Y_source._ra_linear_itraj_strategy
self._ra_jagged = self._Y_source._ra_jagged
self._is_random_accessible = True
elif self.data_producer is not None:
self._ra_jagged = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_jagged)
self._ra_linear_itraj_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_itraj_strategy)
self._ra_linear_strategy = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_linear_strategy)
self._ra_cuboid = \
StreamingTransformerRandomAccessStrategy(self, self.data_producer._ra_cuboid)
self._is_random_accessible = self.data_producer._is_random_accessible
else:
self._ra_jagged = self._ra_linear_itraj_strategy = self._ra_linear_strategy \
= self._ra_cuboid = None
self._is_random_accessible = False