Changeset 4409


Ignore:
Timestamp:
Apr 23, 2020 5:53:38 PM (18 months ago)
Author:
toby
Message:

select bank for scripting simulation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIscriptable.py

    r4399 r4409  
    21202120       
    21212121    def add_simulated_powder_histogram(self, histname, iparams, Tmin, Tmax, Tstep,
    2122                                        wavelength=None, scale=None, phases=[]):
     2122                                       wavelength=None, scale=None, phases=[], ibank=None):
    21232123        """Loads a powder data histogram into the project.
    21242124
     
    21312131        :param str histname: A name for the histogram to be created.
    21322132        :param str iparams: The instrument parameters file, a filename.
    2133         :param float Tmin: Minimum 2theta or TOF (ms) for dataset to be simulated
    2134         :param float Tmax: Maximum 2theta or TOF (ms) for dataset to be simulated
    2135         :param float Tstep: Step size in 2theta or TOF (ms) for dataset to be simulated       
     2133        :param float Tmin: Minimum 2theta or TOF (microsec) for dataset to be simulated
     2134        :param float Tmax: Maximum 2theta or TOF (usec) for dataset to be simulated
     2135        :param float Tstep: Step size in 2theta or TOF (usec) for dataset to be simulated       
    21362136        :param float wavelength: Wavelength for CW instruments, overriding the value
    21372137           in the instrument parameters file if specified.
     
    21432143        :param list phases: Phases to link to the new histogram. Use proj.phases() to link to
    21442144           all defined phases.
     2145        :param int ibank: provides a bank number for the instrument parameter file. The
     2146           default is None, corresponding to load the first bank.
    21452147
    21462148        :returns: A :class:`G2PwdrData` object representing the histogram
     
    21842186        Tmax = rd.powderdata[0][-1]
    21852187        histname, new_names, pwdrdata = load_pwd_from_reader(rd, iparams,
    2186                                                             [h.name for h in self.histograms()])
     2188                                            [h.name for h in self.histograms()],ibank)
    21872189        if histname in self.data:
    21882190            G2fil.G2Print("Warning - redefining histogram", histname)
Note: See TracChangeset for help on using the changeset viewer.