darsia.SimpleFlash#
- class SimpleFlash(min_value_aq, max_value_aq, min_value_g, max_value_g, restoration=None)[source]#
Bases:
objectFlash splitting a signal into aqueous and gas fractions by fixed bounds.
Constructor.
Methods
from_dict(data)Create a SimpleFlash from a dictionary.
load(path)Load the SimpleFlash parameters from a file.
save(path)Save the SimpleFlash parameters to a file.
to_dict()Convert the SimpleFlash parameters to a dictionary.
update([min_value_aq, max_value_aq, ...])Update of internal parameters.
Attributes
Minimum value.
Maximum value.
Minimum value.
Maximum value.
Restoration object.
- classmethod from_dict(data)[source]#
Create a SimpleFlash from a dictionary.
- Parameters:
- data
dict Dictionary representation of the SimpleFlash parameters.
- data
- classmethod load(path)[source]#
Load the SimpleFlash parameters from a file.
- Parameters:
- path
Path The path to the file from which the parameters will be loaded.
- path
- Returns:
SimpleFlashThe loaded SimpleFlash instance.
- save(path)[source]#
Save the SimpleFlash parameters to a file.
- Parameters:
- path
Path The path to the file where the parameters will be saved.
- path
- to_dict()[source]#
Convert the SimpleFlash parameters to a dictionary.
- Returns:
dictDictionary representation of the SimpleFlash parameters.
- update(min_value_aq=None, max_value_aq=None, min_value_g=None, max_value_g=None)[source]#
Update of internal parameters.
- max_value_aq#
Maximum value.
- max_value_g#
Maximum value.
- min_value_aq#
Minimum value.
- min_value_g#
Minimum value.
- restoration#
Restoration object.