ramp_database.model
.Problem¶
-
class
ramp_database.model.
Problem
(name, path_ramp_kit, path_ramp_data, session=None)¶ Problem table.
- Parameters
- namestr
The name of the problem.
- path_ramp_kitstr
The path where the kit is located. It will corresponds to the key
ramp_kit_dir
of the dictionary created withramp_utils.generate_ramp_config
.- path_ramp_datastr
The path where the data are located. It will corresponds to the key
ramp_data_dir
of the dictionary created withramp_utils.generate_ramp_config
.- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- Attributes
- idint
The ID of the table row.
- namestr
The name of the problem.
- workflow_idid
The ID of the associated workflow.
- workflow
ramp_database.model.Worflow
The workflow instance.
- path_ramp_kitstr
The path where the kit are located.
- path_ramp_datastr
The path where the data are located.
- eventslist of
ramp_database.model.Event
A back-reference to the event.
- keywordslist of
ramp_database.model.ProblemKeyword
A back-reference to the keywords associated with the problem.
-
__init__
(name, path_ramp_kit, path_ramp_data, session=None)¶ A simple constructor that allows initialization from kwargs.
Sets attributes on the constructed instance using the names and values in
kwargs
.Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.