Did I find the right examples for you? yes no

All Samples(0)  |  Call(0)  |  Derive(0)  |  Import(0)

src/p/y/PyFMI-1.4/src/common/io.py   PyFMI(Download)
            if aliases[i][1] == 0: # no alias
                if variabilities[i][1] == fmi.FMI_PARAMETER or \
                    variabilities[i][1] == fmi.FMI_CONSTANT:
                    cnt_1 += 1
                    n_parameters += 1
        # write constants and parameters
        for i, name in enumerate(names_noalias):
            if variabilities_noalias[i][1] == fmi.FMI_CONSTANT or \
                variabilities_noalias[i][1] == fmi.FMI_PARAMETER:
                    if types_noalias[i][1] == fmi.FMI_REAL:
            factor = -1 if var.alias == fmi.FMI_NEGATED_ALIAS else 1 
 
            if var.variability == fmi.FMI_CONSTANT or var.variability == fmi.FMI_PARAMETER: 
                return Trajectory([self.time[0],self.time[-1]],[self.model.get(name),self.model.get(name)]) 
            else: 
        variability = self.vars[name].variability 
 
        if variability ==  fmi.FMI_CONSTANT or variability == fmi.FMI_PARAMETER: 
            return False 
        else: 
            var = vars[name]
            if var.type == fmi.FMI_REAL:
                if var.variability == fmi.FMI_CONSTANT or var.variability == fmi.FMI_PARAMETER:
                    const_valref_real.append(var.value_reference)
                    const_name_real.append(var.name)

src/p/y/PyFMI-1.4/src/pyfmi/fmi_algorithm_drivers.py   PyFMI(Download)
                variability = fmi.FMI_CONTINUOUS
 
            if variability == fmi.FMI_CONSTANT or variability == fmi.FMI_PARAMETER:
            #Variable is a parameter or constant
                return val.x[0]