예제 #1
0
    def _produce_outputs(self, difa, difc, tzero, tbl_name):
        """
        Fills in the output properties as requested via the input
        properties. Sets the output difz/difc/tzero values. It can
        also produces a table with these parameters if required in the
        inputs.

        @param difa :: the DIFA GSAS parameter as fitted here
        @param difc :: the DIFC GSAS parameter as fitted here
        @param tzero :: the TZERO GSAS parameter as fitted here
        @param tbl_name :: a table name, non-empty if a table workspace
        should be created with the calibration parameters
        """

        import EnggUtils

        # mandatory outputs
        self.setProperty('DIFA', difa)
        self.setProperty('DIFC', difc)
        self.setProperty('TZERO', tzero)

        # optional outputs
        if tbl_name:
            EnggUtils.generateOutputParTable(tbl_name, difa, difc, tzero)
            self.log().information("Output parameters added into a table workspace: %s" % tbl_name)
예제 #2
0
    def _produce_outputs(self, difc, zero, fitted_peaks):
        """
        Fills in the output properties as requested via the input properties. Sets the output difc, and zero
        values, and a table workspace with peaks information. It can also produces a table with the difc and
        zero parameters if this is required in the inputs.

        @param difc :: the difc GSAS parameter as fitted here
        @param zero :: the zero GSAS parameter as fitted here
        @param fitted_peaks :: table workspace with peak parameters (one peak per row)
        """

        import EnggUtils

        # mandatory outputs
        self.setProperty('Difc', difc)
        self.setProperty('Zero', zero)
        self.setProperty('FittedPeaks', fitted_peaks)

        # optional outputs
        tbl_name = self.getPropertyValue("OutParametersTable")
        if '' != tbl_name:
            EnggUtils.generateOutputParTable(tbl_name, difc, zero)
            self.log().information(
                "Output parameters added into a table workspace: %s" %
                tbl_name)
예제 #3
0
    def _produce_outputs(self, difa, difc, tzero, tbl_name):
        """
        Fills in the output properties as requested via the input
        properties. Sets the output difz/difc/tzero values. It can
        also produces a table with these parameters if required in the
        inputs.

        @param difa :: the DIFA GSAS parameter as fitted here
        @param difc :: the DIFC GSAS parameter as fitted here
        @param tzero :: the TZERO GSAS parameter as fitted here
        @param tbl_name :: a table name, non-empty if a table workspace
        should be created with the calibration parameters
        """

        import EnggUtils

        # mandatory outputs
        self.setProperty('DIFA', difa)
        self.setProperty('DIFC', difc)
        self.setProperty('TZERO', tzero)

        # optional outputs
        if tbl_name:
            EnggUtils.generateOutputParTable(tbl_name, difa, difc, tzero)
            self.log().information(
                "Output parameters added into a table workspace: %s" %
                tbl_name)
예제 #4
0
    def _produceOutputs(self, difc, zero):
        """
        Just fills in the output properties as requested

        @param difc :: the difc GSAS parameter as fitted here
        @param zero :: the zero GSAS parameter as fitted here
        """

        import EnggUtils

        self.setProperty('Difc', difc)
        self.setProperty('Zero', zero)

        # make output table if requested
        tblName = self.getPropertyValue("OutputParametersTableName")
        if '' != tblName:
            EnggUtils.generateOutputParTable(tblName, difc, zero)
            self.log().information("Output parameters added into a table workspace: %s" % tblName)
예제 #5
0
    def _produce_outputs(self, difc, zero, fitted_peaks):
        """
        Just fills in the output properties as requested

        @param difc :: the difc GSAS parameter as fitted here
        @param zero :: the zero GSAS parameter as fitted here
        @param fitted_peaks :: table workspace with peak parameters (one peak per row)
        """

        import EnggUtils

        self.setProperty("Difc", difc)
        self.setProperty("Zero", zero)
        self.setProperty("FittedPeaks", fitted_peaks)

        # make output table if requested
        tblName = self.getPropertyValue("OutputParametersTableName")
        if "" != tblName:
            EnggUtils.generateOutputParTable(tblName, difc, zero)
            self.log().information("Output parameters added into a table workspace: %s" % tblName)
예제 #6
0
    def _produce_outputs(self, difc, zero, fitted_peaks):
        """
        Just fills in the output properties as requested

        @param difc :: the difc GSAS parameter as fitted here
        @param zero :: the zero GSAS parameter as fitted here
        @param fitted_peaks :: table workspace with peak parameters (one peak per row)
        """

        import EnggUtils

        self.setProperty('Difc', difc)
        self.setProperty('Zero', zero)
        self.setProperty('FittedPeaks', fitted_peaks)

        # make output table if requested
        tblName = self.getPropertyValue("OutputParametersTableName")
        if '' != tblName:
            EnggUtils.generateOutputParTable(tblName, difc, zero)
            self.log().information("Output parameters added into a table workspace: %s" % tblName)
예제 #7
0
    def _produce_outputs(self, difc, zero, fitted_peaks):
        """
        Fills in the output properties as requested via the input properties. Sets the output difc, and zero
        values, and a table workspace with peaks information. It can also produces a table with the difc and
        zero parameters if this is required in the inputs.

        @param difc :: the difc GSAS parameter as fitted here
        @param zero :: the zero GSAS parameter as fitted here
        @param fitted_peaks :: table workspace with peak parameters (one peak per row)
        """

        import EnggUtils

        # mandatory outputs
        self.setProperty('Difc', difc)
        self.setProperty('Zero', zero)
        self.setProperty('FittedPeaks', fitted_peaks)

        # optional outputs
        tbl_name = self.getPropertyValue("OutParametersTable")
        if '' != tbl_name:
            EnggUtils.generateOutputParTable(tbl_name, difc, zero)
            self.log().information("Output parameters added into a table workspace: %s" % tbl_name)