Skip to content

NSTEPS value not returned #37

@Senechau-Nathan

Description

@Senechau-Nathan

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions