Skip to content
Snippets Groups Projects
Commit a33d1aeb authored by Jan Müller's avatar Jan Müller
Browse files

Fix MultimeterMeasurementModel

parent 19aeaef9
No related branches found
No related tags found
1 merge request!4Feature/add arbor support
...@@ -15,30 +15,30 @@ class MultimeterMeasurement(Model): ...@@ -15,30 +15,30 @@ class MultimeterMeasurement(Model):
Do not edit the class manually. Do not edit the class manually.
""" """
def __init__(self, simulation_times: List[float]=None, probe_ids: List[int]=None, values: List[float]=None): # noqa: E501 def __init__(self, simulation_times: List[float]=None, gids: List[int]=None, values: List[float]=None): # noqa: E501
"""MultimeterMeasurement - a model defined in Swagger """MultimeterMeasurement - a model defined in Swagger
:param simulation_times: The simulation_times of this MultimeterMeasurement. # noqa: E501 :param simulation_times: The simulation_times of this MultimeterMeasurement. # noqa: E501
:type simulation_times: List[float] :type simulation_times: List[float]
:param probe_ids: The probe_ids of this MultimeterMeasurement. # noqa: E501 :param gids: The gids of this MultimeterMeasurement. # noqa: E501
:type probe_ids: List[int] :type gids: List[int]
:param values: The values of this MultimeterMeasurement. # noqa: E501 :param values: The values of this MultimeterMeasurement. # noqa: E501
:type values: List[float] :type values: List[float]
""" """
self.swagger_types = { self.swagger_types = {
'simulation_times': List[float], 'simulation_times': List[float],
'probe_ids': List[int], 'gids': List[int],
'values': List[float] 'values': List[float]
} }
self.attribute_map = { self.attribute_map = {
'simulation_times': 'simulation_times', 'simulation_times': 'simulation_times',
'probe_ids': 'probe_ids', 'gids': 'gids',
'values': 'values' 'values': 'values'
} }
self._simulation_times = simulation_times self._simulation_times = simulation_times
self._probe_ids = probe_ids self._gids = gids
self._values = values self._values = values
@classmethod @classmethod
...@@ -76,25 +76,25 @@ class MultimeterMeasurement(Model): ...@@ -76,25 +76,25 @@ class MultimeterMeasurement(Model):
self._simulation_times = simulation_times self._simulation_times = simulation_times
@property @property
def probe_ids(self) -> List[int]: def gids(self) -> List[int]:
"""Gets the probe_ids of this MultimeterMeasurement. """Gets the gids of this MultimeterMeasurement.
:return: The probe_ids of this MultimeterMeasurement. :return: The gids of this MultimeterMeasurement.
:rtype: List[int] :rtype: List[int]
""" """
return self._probe_ids return self._gids
@probe_ids.setter @gids.setter
def probe_ids(self, probe_ids: List[int]): def gids(self, gids: List[int]):
"""Sets the probe_ids of this MultimeterMeasurement. """Sets the gids of this MultimeterMeasurement.
:param probe_ids: The probe_ids of this MultimeterMeasurement. :param gids: The gids of this MultimeterMeasurement.
:type probe_ids: List[int] :type gids: List[int]
""" """
self._probe_ids = probe_ids self._gids = gids
@property @property
def values(self) -> List[float]: def values(self) -> List[float]:
......
...@@ -616,15 +616,15 @@ definitions: ...@@ -616,15 +616,15 @@ definitions:
items: items:
type: "number" type: "number"
format: "double" format: "double"
probe_ids: gids:
type: "array" type: "array"
items: items:
type: "integer" type: "integer"
format: "uint64" format: "uint64"
values: values:
type: "array" type: "array"
description: "This array contains the measured values for each probe and time\ description: "This array contains the measured values for each gid and time\
\ to get the value for probe n at time t you have to use the index n * length(simulation_times)\ \ to get the value for gid n at time t you have to use the index n * length(simulation_times)\
\ + t" \ + t"
items: items:
type: "number" type: "number"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment