nismod/smif

'DataHandle' object has no attribute 'read_coefficients'

Closed this issue · 0 comments

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'