problem with Data Manager

Asked by Louise Olsen

Could you let me know why this error occurs using DataManager:
dm = DataManager(formats=[DataManager.SILO,DataManager.setTime(displacement_top)])

  File "NoDamageCylinderVisMeshUpdate.py", line 114, in <module>
    dm = DataManager(formats=[DataManager.SILO,DataManager.setTime(displacement_top)])
TypeError: unbound method setTime() must be called with DataManager instance as first argument (got float instance instead)

Question information

Language:
English Edit question
Status:
Solved
For:
esys-escript Edit question
Assignee:
No assignee Edit question
Solved by:
Bob
Solved:
Last query:
Last reply:
Revision history for this message
Best Bob (caltinay) said :
#1

You need to instantiate the DataManager first, then call setTime() on the instance, i.e.

dm = DataManager(formats=[DataManager.SILO])
dm.setTime(displacement_top)

Revision history for this message
Louise Olsen (l-kettle1) said :
#2

Thanks Cihan Altinay, that solved my question.