OPF and Scalar Encoder

I have a dataset, where not all events are present at each time point, and I’m using the scalar encoder. I tried to use encoder.encodeIntoArray(‘nan’) and encoder.encodeIntoArray(None) for the data points where isn’t the event, but it didn’t work.(TypeError: long() argument must be a string or a number, not ‘NoneType’) How to deal with such cases?

Thanx a lot !

See: How to handle missing data points?