1. i-SAS_SensorModeler-template¶
1.1. interface¶
-
class
sensor_modeler.interface.Interface(sensor_name, sensor_setting, structural_model_name=None, **kwargs)¶ Bases:
objectinterface class
-
package_name= 'sensor_modeler'¶
-
__init__(sensor_name, sensor_setting, structural_model_name=None, **kwargs)¶ initialization of Interface class
- Parameters
sensor_name (str) – sensor name.
sensor_setting (dict) – sensor setting data.
structural_model_name (str, optional) – structural model name. The default, None
**kwargs – Arbitrary keyword arguments.
-
set_project(project_name)¶ set project
- Parameters
project_name (str) – project name.
-
set_model(sensors, structural_models)¶ set model
- Parameters
sensors (dict) – sensors
structural_models (dict) – structural models.
-
__call__()¶ get sensor and sensor structural model connection
- Returns
containing followings.
- dict: information of the sensor, following.
- sensor_name (dict):
’locational’ (bool): True if the sensor is locational. ‘directional’ (bool): True if the sensor is directional. ‘sensor’ (pandas.DataFrame): information of each sensor point.
- dict: connection between sensor and structural model, following.
- (sensor_name, structural model name) (pandas.DataFrame):
structural model connection for locational sensor. if the sensor is not locational, return None.
- Return type
tuple
-
1.2. model¶
-
class
sensor_modeler.model.Model(sensor_setting, cfg)¶ Bases:
objectmodel class
-
__init__(sensor_setting, cfg)¶ constructor
- Parameters
sensor_setting (dict) – sensor setting data.
cfg (dict) – config.
-
set_model(sensor, structural_model)¶ set model
- Parameters
sensor (dict) – sensor.
structural_model (dict) – structural model.
-
__call__()¶ get sensor and sensor structural model connection
- Returns
containing followings.
- dict: information of the sensor, following.
’locational’ (bool): True if the sensor is locational. ‘directional’ (bool): True if the sensor is directional. ‘sensor’ (pandas.DataFrame): information of each sensor point.
pandas.DataFrame: structural model connection for locational sensor.
- Return type
tuple
-