modelon/impact/client/experiment_definition.py
def with_cases(self, cases_modifiers):
        """Sets up an experiment with multiple cases with different
        variable modifiers.

        Parameters:

            cases_modifiers --
                A list of variable modifier dictionaries.
                Multiple dictionaries with variable modifiers could to added to create
                multiple cases.

        Example::

            fmu = model.compile().wait()
            experiment_definition = fmu.new_experiment_definition(
                custom_function).with_cases([{'PI.k': 20}, {'PI.k': 30}])
        """
        _assert_valid_case_modifiers(cases_modifiers)

        extensions = [
            SimpleExperimentExtension().with_modifiers(modifiers)
            for modifiers in cases_modifiers
        ]
        return self.with_extensions(extensions)
Sets up an experiment with multiple cases with different
        variable modifiers.

        Parameters:

            cases_modifiers --
                A list of variable modifier dictionaries.
                Multiple dictionaries with variable modifiers could to added to create
                multiple cases.

        Example::

            fmu = model.compile().wait()
            experiment_definition = fmu.new_experiment_definition(
                custom_function).with_cases([{'PI.k': 20}, {'PI.k': 30}])
        
Sets up an experiment with multiple cases with different
variable modifiers.



cases_modifiers
A list of variable modifier dictionaries.
Multiple dictionaries with variable modifiers could to added to create
multiple cases.




Sets up an experiment with multiple cases with different variable modifiers . cases_modifiers A list of variable modifier dictionaries . Multiple dictionaries with variable modifiers could to added to create multiple cases .
def with_cases(self, cases_modifiers):
        _assert_valid_case_modifiers(cases_modifiers)
        extensions = [
            SimpleExperimentExtension().with_modifiers(modifiers)
            for modifiers in cases_modifiers
        ]
        return self.with_extensions(extensions)
def with_cases ( self , cases_modifiers ) : _assert_valid_case_modifiers ( cases_modifiers ) extensions = [ SimpleExperimentExtension ( ) . with_modifiers ( modifiers ) for modifiers in cases_modifiers ] return self . with_extensions ( extensions )
Sets up an experiment with multiple cases with different
variable modifiers.
Sets up an experiment with multiple cases with different variable modifiers .
"""Sets up an experiment with multiple cases with different
        variable modifiers.

        Parameters:

            cases_modifiers --
                A list of variable modifier dictionaries.
                Multiple dictionaries with variable modifiers could to added to create
                multiple cases.

        Example::

            fmu = model.compile().wait()
            experiment_definition = fmu.new_experiment_definition(
                custom_function).with_cases([{'PI.k': 20}, {'PI.k': 30}])
        """
self
cases_modifiers