nismod / smif

Simulation Modelling Integration Framework
http://www.itrc.org.uk
MIT License
22 stars 6 forks source link

'DataHandle' object has no attribute 'read_coefficients' #310

Closed willu47 closed 5 years ago

willu47 commented 5 years ago

Adaptors expect data_handle to have method read_coefficients. The store has read and write methods for coefficients, but this isn't exposed at the data_handle level.

Traceback (most recent call last):
  File "/vagrant/smif/src/smif/controller/scheduler.py", line 178, in add
    self._run(job_graph, job_graph_id)
  File "/vagrant/smif/src/smif/controller/scheduler.py", line 249, in _run
    model.simulate(data_handle)
  File "/vagrant/smif/src/smif/convert/adaptor.py", line 27, in simulate
    coefficients = self.get_coefficients(data, from_spec, to_spec)
  File "/vagrant/smif/src/smif/convert/adaptor.py", line 46, in get_coefficients
    coefficients = data_handle.read_coefficients(from_spec, to_spec)
AttributeError: 'DataHandle' object has no attribute 'read_coefficients'