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

Update API

parent 55bb5874
No related branches found
No related tags found
No related merge requests found
...@@ -15,31 +15,31 @@ class Data(Model): ...@@ -15,31 +15,31 @@ class Data(Model):
Do not edit the class manually. Do not edit the class manually.
""" """
def __init__(self, simulation_steps: List[float]=None, neuron_ids: List[float]=None, data: List[float]=None): # noqa: E501 def __init__(self, simulation_steps: List[float]=None, neuron_ids: List[float]=None, values: List[float]=None): # noqa: E501
"""Data - a model defined in Swagger """Data - a model defined in Swagger
:param simulation_steps: The simulation_steps of this Data. # noqa: E501 :param simulation_steps: The simulation_steps of this Data. # noqa: E501
:type simulation_steps: List[float] :type simulation_steps: List[float]
:param neuron_ids: The neuron_ids of this Data. # noqa: E501 :param neuron_ids: The neuron_ids of this Data. # noqa: E501
:type neuron_ids: List[float] :type neuron_ids: List[float]
:param data: The data of this Data. # noqa: E501 :param values: The values of this Data. # noqa: E501
:type data: List[float] :type values: List[float]
""" """
self.swagger_types = { self.swagger_types = {
'simulation_steps': List[float], 'simulation_steps': List[float],
'neuron_ids': List[float], 'neuron_ids': List[float],
'data': List[float] 'values': List[float]
} }
self.attribute_map = { self.attribute_map = {
'simulation_steps': 'simulation_steps', 'simulation_steps': 'simulation_steps',
'neuron_ids': 'neuron_ids', 'neuron_ids': 'neuron_ids',
'data': 'data' 'values': 'values'
} }
self._simulation_steps = simulation_steps self._simulation_steps = simulation_steps
self._neuron_ids = neuron_ids self._neuron_ids = neuron_ids
self._data = data self._values = values
@classmethod @classmethod
def from_dict(cls, dikt) -> 'Data': def from_dict(cls, dikt) -> 'Data':
...@@ -95,22 +95,22 @@ class Data(Model): ...@@ -95,22 +95,22 @@ class Data(Model):
self._neuron_ids = neuron_ids self._neuron_ids = neuron_ids
@property @property
def data(self) -> List[float]: def values(self) -> List[float]:
"""Gets the data of this Data. """Gets the values of this Data.
:return: The data of this Data. :return: The values of this Data.
:rtype: List[float] :rtype: List[float]
""" """
return self._data return self._values
@data.setter @values.setter
def data(self, data: List[float]): def values(self, values: List[float]):
"""Sets the data of this Data. """Sets the values of this Data.
:param data: The data of this Data. :param values: The values of this Data.
:type data: List[float] :type values: List[float]
""" """
self._data = data self._values = values
...@@ -207,20 +207,20 @@ definitions: ...@@ -207,20 +207,20 @@ definitions:
items: items:
type: "number" type: "number"
format: "int64" format: "int64"
data: values:
type: "array" type: "array"
items: items:
type: "number" type: "number"
example: example:
simulation_steps: simulation_steps:
- 0.8008281904610115 - 0.1
- 0.8008281904610115 - 0.2
data: values:
- 1.4658129805029452 - 61.48
- 1.4658129805029452 - 13.46
neuron_ids: neuron_ids:
- 6.027456183070403 - 1
- 6.027456183070403 - 2
Spikes: Spikes:
type: "object" type: "object"
properties: properties:
...@@ -236,11 +236,11 @@ definitions: ...@@ -236,11 +236,11 @@ definitions:
format: "int64" format: "int64"
example: example:
simulation_steps: simulation_steps:
- 0.8008281904610115 - 0.1
- 0.8008281904610115 - 0.2
neuron_ids: neuron_ids:
- 6.027456183070403 - 1
- 6.027456183070403 - 2
Error: Error:
type: "object" type: "object"
properties: properties:
......
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