Menu

#11 daePandasDataReporter and Python 3

v1.0_(example)
open
nobody
None
1
2015-05-12
2015-05-12
No

I found that daePandasDataReporter does not correctly Disconnnect() because the behaviour of zip() changed from returning a list (py2) to returning an iterator(py3), which causes this line to fail (data_reporters.py L335):
self.data_frame = DataFrame(data = zip(times, data), columns = ['Times', 'Value'], index = names)

with "data argument can't be an iterator". Wrapping the zip call in a list() makes it work (and should also be py2-compatible I think).

Windows 8.1, daetools-1.4.0-win32-py34, Python 3.4.2 32bit (Anaconda)

Discussion

Anonymous
Anonymous

Add attachments
Cancel