I get a dataset of alarms but when I toPyDataSet then I get an error saying
can’t coerce to a Dataset.
Do I misunderstand somehow?
Here’s my code and the error is underneath:
alarms = system.alarm.queryJournal(
startDate='2017-04-12 07:00:00',
endDate='2017-04-12 07:30:00',
includeData=False,
includeSystem=False
)
alarmsDataset = alarms.getDataset
alarmsInPy = system.dataset.toPyDataSet(alarmsDataset)
com.inductiveautomation.ignition.common.script.JythonExecException: Traceback (most recent call last): File “”, line 11, in doGet TypeError: toPyDataSet(): 1st arg can’t be coerced to com.inductiveautomation.ignition.common.Dataset