NSTEPS value not returned
- Dominant language
- Python
- Stars
- 49
- Forks
- 11
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 2
Description
Hello everyone,
I 've a question about the best way to recover the number of timestep for a predict run calculation with your library ? I've tried to do this but the function return `None` as the `DoCmd()` method cannot return a value but in the Openserver documentation when the `GAP.PREDINIT()` is performed normally the command return the number of timestep, here below my code:
`
C.DoSet('GAP.MOD[{PROD}].PREDINFO.START.DATESTR','{01/01/2007}')
C.DoSet('GAP.MOD[{PROD}].PREDINFO.END.DATESTR','{01/01/2018}')
C.DoSet('GAP.MOD[{PROD}].PREDINFO.STEPTYPE','YEARS')
C.DoSet('GAP.MOD[{PROD}].PREDINFO.STEP.DATESTR',2)
C.DoSet('GAP.MOD[{PROD}].PredictionOptimiseMode','OptRBNS')
steps = C.DoCmd('GAP.PREDINIT()')
print(steps)`
Thank you for your help.
Contributor guide
Assessment
This issue has not been assessed yet.