src/orion/core/io/orion_cmdline_parser.py
def _extract_prior(self, key, value, insert_into):
        """Insert parameters if it has a prior.

        Match the regex for priors with the `value` argument to extract the information
        regarding the prior. If it posseses such information, insert the parameters inside
        the `cmd_priors` attribute.

        Parameters
        ----------
        key: str
            Current key for the element inside the `OrderedDict` of commandline arguments.
        Will correspond to `orion` if it is related to priors.

        value:
            Possible parameter to parse through the regex.

        insert_into: OrderedDict
            Collections into which to insert the current prior.

        """
        if not isinstance(value, str):
            return

        prior = self.prior_regex.match(value)
        if prior is None:
            return

        # Skip first group because it will always correspond to `orion`.
        _, expression = prior.groups(2)

        name = key
        if not name.startswith("/"):
            name = "/" + name

        insert_into[name] = expression
Insert parameters if it has a prior.

        Match the regex for priors with the `value` argument to extract the information
        regarding the prior. If it posseses such information, insert the parameters inside
        the `cmd_priors` attribute.

        Parameters
        ----------
        key: str
            Current key for the element inside the `OrderedDict` of commandline arguments.
        Will correspond to `orion` if it is related to priors.

        value:
            Possible parameter to parse through the regex.

        insert_into: OrderedDict
            Collections into which to insert the current prior.

        
Insert parameters if it has a prior.
Match the regex for priors with the `value` argument to extract the information
regarding the prior. If it posseses such information, insert the parameters inside
the `cmd_priors` attribute.

Parameters

str
Current key for the element inside the `OrderedDict` of commandline arguments.
Will correspond to `orion` if it is related to priors.

Possible parameter to parse through the regex.

OrderedDict
Collections into which to insert the current prior.
Insert parameters if it has a prior . Match the regex for priors with the ` value ` argument to extract the information regarding the prior . If it posseses such information insert the parameters inside the ` cmd_priors ` attribute . Parameters str Current key for the element inside the ` OrderedDict ` of commandline arguments . Will correspond to ` orion ` if it is related to priors . Possible parameter to parse through the regex . OrderedDict Collections into which to insert the current prior .
def _extract_prior(self, key, value, insert_into):
        if not isinstance(value, str):
            return
        prior = self.prior_regex.match(value)
        if prior is None:
            return
        _, expression = prior.groups(2)
        name = key
        if not name.startswith("/"):
            name = "/" + name
        insert_into[name] = expression
def _extract_prior ( self , key , value , insert_into ) : if not isinstance ( value , str ) : return prior = self . prior_regex . match ( value ) if prior is None : return _ , expression = prior . groups ( 2 ) name = key if not name . startswith ( "/" ) : name = "/" + name insert_into [ name ] = expression
Insert parameters if it has a prior.
Insert parameters if it has a prior .
"""Insert parameters if it has a prior.

        Match the regex for priors with the `value` argument to extract the information
        regarding the prior. If it posseses such information, insert the parameters inside
        the `cmd_priors` attribute.

        Parameters
        ----------
        key: str
            Current key for the element inside the `OrderedDict` of commandline arguments.
        Will correspond to `orion` if it is related to priors.

        value:
            Possible parameter to parse through the regex.

        insert_into: OrderedDict
            Collections into which to insert the current prior.

        """ # Skip first group because it will always correspond to `orion`.
self
key
value
insert_into