@@ -42,14 +42,16 @@ def __init__(self):
4242 n_const_sensors : integer,
4343 Total number of sensors required by the user in the constrained region.
4444 all_sensors : np.ndarray, shape [n_features]
45- Optimall placed list of sensors obtained from QR pivoting algorithm.
45+ Optimally placed list of sensors obtained from QR pivoting algorithm.
4646 constraint_option : string,
4747 max_n_const_sensors : The number of sensors in the constrained region should be less than or equal to n_const_sensors.
4848 exact_n_const_sensors : The number of sensors in the constrained region should be exactly equal to n_const_sensors.
49+ nx, ny : integer,
50+ X, Y dimensions of the grid.
4951 """
5052 self .pivots_ = None
5153 self .idx_constrained = []
52- self .n_sensors = 0
54+ self .n_sensors = None
5355 self .n_const_sensors = 0
5456 self .all_sensors = []
5557 self .constraint_option = ''
@@ -76,13 +78,6 @@ def fit(self,basis_matrix=None,**optimizer_kws):
7678 n_features , n_samples = basis_matrix .shape # We transpose basis_matrix below
7779 max_const_sensors = len (self .idx_constrained ) # Maximum number of sensors allowed in the constrained region
7880
79- ## Assertions and checks:
80- # if self.n_sensors > n_features - max_const_sensors + self.nConstrainedSensors:
81- # raise IOError ("n_sensors cannot be larger than n_features - all possible locations in the constrained area + allowed constrained sensors")
82- # if self.n_sensors > n_samples + self.nConstrainedSensors: ## Handling zero constraint?
83- # raise IOError ("Currently n_sensors should be less than min(number of samples, number of modes) + number of constrained sensors,\
84- # got: n_sensors = {}, n_samples + const_sensors = {} + {} = {}".format(self.n_sensors,n_samples,self.nConstrainedSensors,n_samples+self.nConstrainedSensors))
85-
8681 # Initialize helper variables
8782 R = basis_matrix .conj ().T .copy ()
8883 p = np .arange (n_features )
0 commit comments