pyleecan.Functions.Load.retrocompatibility module¶
- convert_init_dict(init_dict)[source]¶
Convert an init_dict from an old version of pyleecan to the current one (modification in place)
- Parameters:
init_dict (dict) – The dictionnary to update
- move_yoke_notch(obj_dict)[source]¶
Move all yoke notches to notch property and set notch.is_yoke property to True
- convert_opticonstraint(opticonstraint_dict)[source]¶
Update the old OptiConstraint to the new one inherited from DataKeeper without get_variable
- convert_optidesignvar(optidesignvar_dict)[source]¶
Update the old OptiDesignVar to the new ones OptiDesignVarSet & OptiDesignVarInterval
- is_before_version(ref_version, check_version)[source]¶
Check if a version str is before another version str
- Parameters:
ref_version (str) – Reference version to compare with (“1.2.3” for instance)
check_version (str) – Version to check if before reference (“1.3.4” for instance)
- Returns:
is_before – True if check_version is before ref_version
- Return type:
bool