Free cookie consent management tool by TermsFeed Policy Generator

Changeset 18188


Ignore:
Timestamp:
01/12/22 15:54:45 (2 years ago)
Author:
mkommend
Message:

#3136: Fixed backwards compatibility of StructureTemplate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3136_Structural_GP/HeuristicLab.Problems.DataAnalysis.Symbolic/3.4/StructureTemplate/StructureTemplate.cs

    r18187 r18188  
    2929    }
    3030
     31    private ISymbolicExpressionTree _oldTree;
     32    [Storable(OldName = "treeWithoutLinearScaling")]
     33    private ISymbolicExpressionTree _OldTreeW {
     34      set => _oldTree = value;
     35    }
     36
    3137    [Storable]
    3238    private ISymbolicExpressionTree tree;
     
    9298    [StorableHook(HookType.AfterDeserialization)]
    9399    private void AfterDeserialization() {
     100      if (Tree == null && _oldTree != null) {
     101        if (ApplyLinearScaling) _oldTree = AddLinearScalingTerms(_oldTree);
     102        Tree = _oldTree;
     103        _oldTree = null;
     104      }
     105
    94106      RegisterEventHandlers();
    95107    }
Note: See TracChangeset for help on using the changeset viewer.