Skip to content
Snippets Groups Projects
Commit 0d088f2d authored by Stefano Borini's avatar Stefano Borini
Browse files

Flake

parent 650235da
No related branches found
No related tags found
1 merge request!12Data source result
...@@ -15,8 +15,9 @@ class CSVExtractorDataSource(BaseDataSource): ...@@ -15,8 +15,9 @@ class CSVExtractorDataSource(BaseDataSource):
if rowindex == self.model.row: if rowindex == self.model.row:
return DataSourceResult( return DataSourceResult(
originator=self, originator=self,
value_types = [self.model.cuba_type], value_types=[self.model.cuba_type],
values=numpy.array(row[self.model.column]).reshape(1,1) values=numpy.array(
row[self.model.column]).reshape(1, 1)
) )
return None return None
......
...@@ -7,9 +7,9 @@ class DataSourceResult(HasTraits): ...@@ -7,9 +7,9 @@ class DataSourceResult(HasTraits):
"""Represents the result of a simulator. """Represents the result of a simulator.
It contains the resulting cuba key, the associated uncertainty and the It contains the resulting cuba key, the associated uncertainty and the
originating simulator. originating simulator.
Difference between uncertainty and quality: uncertainty is a numerical value Difference between uncertainty and quality: uncertainty is a numerical
of the value, as in the case of an experimental simulation. value of the value, as in the case of an experimental simulation.
quality is the level of accuracy of the (e.g.c omputational) method, as quality is the level of accuracy of the (e.g. computational) method, as
the importance and reliability of that value. It should be an enumeration the importance and reliability of that value. It should be an enumeration
value such as HIGH, MEDIUM, POOR""" value such as HIGH, MEDIUM, POOR"""
originator = Instance(BaseDataSource) originator = Instance(BaseDataSource)
......
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