|
fosanalysis
A framework to evaluate distributed fiber optic sensor data
|
Object to identify potential crack positions. More...
Public Member Functions | |
| __init__ (self, *args, **kwargs) | |
| Constructs a CrackFinder object. | |
| cracks.CrackList | run (self, x, strain) |
Identifies the positions of cracks using scipy.signal.find_peaks() and returns a cracks.CrackList object. | |
Public Member Functions inherited from fosanalysis.utils.base.Task | |
| __init__ (self, *args, **kwargs) | |
Public Member Functions inherited from fosanalysis.utils.base.Base | |
| __init__ (self, *args, **kwargs) | |
| Construct the object and warn about unused/unknown arguments. | |
Public Attributes | |
| args = args | |
Positional arguments, will be passed to scipy.signal.find_peaks(). | |
| kwargs = kwargs if kwargs else {"height": 100,"prominence": 100} | |
Keyword arguments, will be passed to scipy.signal.find_peaks(). | |
Object to identify potential crack positions.
Core functionality is based on scipy.signal.find_peaks().
Definition at line 14 of file finding.py.
| fosanalysis.crackmonitoring.finding.CrackFinder.__init__ | ( | self, | |
| * | args, | ||
| ** | kwargs ) |
Constructs a CrackFinder object.
| args | Positional arguments, will be passed to scipy.signal.find_peaks(). For more, see args. |
| kwargs | Keyword arguments, will be passed to scipy.signal.find_peaks(). For more, see kwargs. |
Definition at line 19 of file finding.py.
| cracks.CrackList fosanalysis.crackmonitoring.finding.CrackFinder.run | ( | self, | |
| x, | |||
| strain ) |
Identifies the positions of cracks using scipy.signal.find_peaks() and returns a cracks.CrackList object.
Those cracks.Crack objects are still incomplete. Their effective lengths may need to be recalculated using separation.CrackLengths.run() and the widths strainprofile.StrainProfile.calculate_crack_widths().
| x | Positional data. |
| strain | Strain data. |
Definition at line 40 of file finding.py.
| fosanalysis.crackmonitoring.finding.CrackFinder.args = args |
Positional arguments, will be passed to scipy.signal.find_peaks().
By default empty.
Definition at line 30 of file finding.py.
| fosanalysis.crackmonitoring.finding.CrackFinder.kwargs = kwargs if kwargs else {"height": 100,"prominence": 100} |
Keyword arguments, will be passed to scipy.signal.find_peaks().
Defaults to the following settings:
| key | value |
|---|---|
| height | 100 |
| prominence | 100 |
The main parameter is prominence, see also Wikipedia: Prominence. If too many cracks are identified, increase prominence, if obvious cracks are missing, reduce prominence.
Definition at line 39 of file finding.py.