ComputePCAThreshold¶
-
class
muse_origin.
ComputePCAThreshold
(orig, idx, param)[source]¶ Bases:
muse_origin.Step
Loop on each area and estimate the threshold for the PCA.
- Parameters
- pfa_test
float
Threshold of the test (default=0.01).
- pfa_test
- Returns
- self.testO2
list
ofarrays
(one
per
PCA
area
) Result of the O2 test.
- self.histO2
lists
ofarrays
(one
per
PCA
area
) PCA histogram.
- self.binO2
lists
ofarrays
(one
per
PCA
area
) bin for the PCA histogram.
- self.thresO2
list
offloat
For each area, threshold value.
- self.meaO2
list
offloat
Location parameter of the Gaussian fit used to estimate the threshold.
- self.stdO2
list
offloat
Scale parameter of the Gaussian fit used to estimate the threshold.
- self.testO2
Attributes Summary
Processing status (
muse_origin.Status
):Methods Summary
__call__
(self, \*args, \*\*kwargs)Run a step, calling its
run
method.dump
(self, outpath)Save the attributes that have been created by the steps, and unload them to free memory.
load
(self, outpath)Recreate attributes of a step, not really loading them as just the file is set, and files are loaded in memory only if needed.
run
(self, orig[, pfa_test])store_cube
(self, name, data, \*\*kwargs)Create a MPDAF Cube and store it as an attribute.
store_image
(self, name, data, \*\*kwargs)Create a MPDAF Image and store it as an attribute.
Attributes Documentation
-
desc
= 'PCA threshold computation'¶
-
meaO2
= None¶
-
name
= 'compute_PCA_threshold'¶
-
require
= ('preprocessing', 'areas')¶
-
status
¶ Processing status (
muse_origin.Status
):NOTRUN: The step has not been run.
RUN: The step has been run but not saved.
DUMP: The step has been run and its outputs saved to disk.
FAILED: The step has been run but it failed.
-
stdO2
= None¶
-
thresO2
= None¶
Methods Documentation
-
__call__
(self, *args, **kwargs)¶ Run a step, calling its
run
method.This method is the one that is called from the ORIGIN object. It calls the
run
method of the step and also does a few additional things like storing the parameters, execution time and date.
-
dump
(self, outpath)¶ Save the attributes that have been created by the steps, and unload them to free memory.
-
load
(self, outpath)¶ Recreate attributes of a step, not really loading them as just the file is set, and files are loaded in memory only if needed.
-
store_cube
(self, name, data, **kwargs)¶ Create a MPDAF Cube and store it as an attribute.
-
store_image
(self, name, data, **kwargs)¶ Create a MPDAF Image and store it as an attribute.