shredx.utils.sensors#

This file contains utilities for extracting sensors from a tensor.

Functions

extract_static_sensors(tensor, sensor_locations)

Extract sensor readings from a tensor at the given locations for each time step.

generate_static_sensors_from_mask(n_sensors, ...)

Generate random locations for static sensors from a tensor.