Esempio n. 1
0
    def TranslateLegacyVariablesAccordingToCurrentStandard(self, settings):
        # Defining a string to help the user understand where the warnings come from (in case any is thrown)
        context_string = type(self).__name__

        if settings.Has('result_file_configuration'):
            sub_settings_where_var_is = settings['result_file_configuration']
            old_name = 'output_frequency'
            new_name = 'output_interval'

            if DeprecationManager.HasDeprecatedVariable(
                    context_string, sub_settings_where_var_is, old_name,
                    new_name):
                DeprecationManager.ReplaceDeprecatedVariableName(
                    sub_settings_where_var_is, old_name, new_name)

        if settings.Has('result_file_configuration'):
            sub_settings_where_var_is = settings['result_file_configuration']
            old_name = 'write_properties_id'
            new_name = 'write_ids'

            if DeprecationManager.HasDeprecatedVariable(
                    context_string, sub_settings_where_var_is, old_name,
                    new_name):
                DeprecationManager.ReplaceDeprecatedVariableName(
                    sub_settings_where_var_is, old_name, new_name)
Esempio n. 2
0
    def TranslateLegacyVariablesAccordingToCurrentStandard(self, settings):
        # Defining a string to help the user understand where the warnings come from (in case any is thrown)
        context_string = type(self).__name__

        old_name = 'output_frequency'
        new_name = 'output_interval'

        if DeprecationManager.HasDeprecatedVariable(context_string, settings, old_name, new_name):
            DeprecationManager.ReplaceDeprecatedVariableName(settings, old_name, new_name)
Esempio n. 3
0
    def TranslateLegacyVariablesAccordingToCurrentStandard(self, settings):

        context_string = type(self).__name__

        old_name = 'output_frequency'
        new_name = 'output_interval'

        if DeprecationManager.HasDeprecatedVariable(context_string, settings, old_name, new_name):
            DeprecationManager.ReplaceDeprecatedVariableName(settings, old_name, new_name)
Esempio n. 4
0
    def TranslateLegacyVariablesAccordingToCurrentStandard(self, settings):

        if settings.Has('result_file_configuration'):
            sub_settings_where_var_is = settings['result_file_configuration']
            old_name = 'output_frequency'
            new_name = 'output_interval'

            if DeprecationManager.HasDeprecatedVariable(
                    context_string, sub_settings_where_var_is, old_name,
                    new_name):
                DeprecationManager.ReplaceDeprecatedVariableName(
                    sub_settings_where_var_is, old_name, new_name)

        if settings.Has('result_file_configuration'):
            sub_settings_where_var_is = settings['result_file_configuration']
            old_name = 'write_properties_id'
            new_name = 'write_ids'

            if DeprecationManager.HasDeprecatedVariable(
                    context_string, sub_settings_where_var_is, old_name,
                    new_name):
                DeprecationManager.ReplaceDeprecatedVariableName(
                    sub_settings_where_var_is, old_name, new_name)