equinor / equinor/OpenServer

NSTEPS value not returned

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.