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
Tags 0.1.0
1 merge request!4Feature/add arbor support
......@@ -15,30 +15,30 @@ class MultimeterMeasurement(Model):
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
:param simulation_times: The simulation_times of this MultimeterMeasurement. # noqa: E501
:type simulation_times: List[float]
:param probe_ids: The probe_ids of this MultimeterMeasurement. # noqa: E501
:type probe_ids: List[int]
:param gids: The gids of this MultimeterMeasurement. # noqa: E501
:type gids: List[int]
:param values: The values of this MultimeterMeasurement. # noqa: E501
:type values: List[float]
"""
self.swagger_types = {
'simulation_times': List[float],
'probe_ids': List[int],
'gids': List[int],
'values': List[float]
}
self.attribute_map = {
'simulation_times': 'simulation_times',
'probe_ids': 'probe_ids',
'gids': 'gids',
'values': 'values'
}
self._simulation_times = simulation_times
self._probe_ids = probe_ids
self._gids = gids
self._values = values
@classmethod
......@@ -76,25 +76,25 @@ class MultimeterMeasurement(Model):
self._simulation_times = simulation_times
@property
def probe_ids(self) -> List[int]:
"""Gets the probe_ids of this MultimeterMeasurement.
def gids(self) -> List[int]:
"""Gets the gids of this MultimeterMeasurement.
:return: The probe_ids of this MultimeterMeasurement.
:return: The gids of this MultimeterMeasurement.
:rtype: List[int]
"""
return self._probe_ids
return self._gids
@probe_ids.setter
def probe_ids(self, probe_ids: List[int]):
"""Sets the probe_ids of this MultimeterMeasurement.
@gids.setter
def gids(self, gids: List[int]):
"""Sets the gids of this MultimeterMeasurement.
:param probe_ids: The probe_ids of this MultimeterMeasurement.
:type probe_ids: List[int]
:param gids: The gids of this MultimeterMeasurement.
:type gids: List[int]
"""
self._probe_ids = probe_ids
self._gids = gids
@property
def values(self) -> List[float]:
......
......@@ -616,15 +616,15 @@ definitions:
items:
type: "number"
format: "double"
probe_ids:
gids:
type: "array"
items:
type: "integer"
format: "uint64"
values:
type: "array"
description: "This array contains the measured values for each probe and time\
\ to get the value for probe n at time t you have to use the index n * length(simulation_times)\
description: "This array contains the measured values for each gid and time\
\ to get the value for gid n at time t you have to use the index n * length(simulation_times)\
\ + t"
items:
type: "number"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment