Python, DeformCalcType of Phases in Input and Output

Hi,

I am using python to iterate through phases. there are phases using the plastic calculation and fases using the safety calculation.

for the input side:

for phase in g_i.Phases[:]:
    if phase.DeformCalcType == phase.DeformCalcType.safety:
        print('FoS : ',phase.DeformCalcType.safety)
    if phase.DeformCalcType == phase.DeformCalcType.plastic:
        print('Plastic : ',phase.DeformCalcType.plastic)

The above code returns "7" for safety calculation phases and "4" for plastic.

for the output side:

for phase in g_o.Phases[:]:
    print(phase.InputSettings.DeformCalcType)

The above code returns always "4" for safety calculation phases and plastic calculations. Not "7" for safety

Is this a Bug?

How can I separate safety phases from plastic phases on the outputside?