- Timestamp:
- Apr 23, 2020 5:53:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/GSASIIscriptable.py
r4399 r4409 2120 2120 2121 2121 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): 2123 2123 """Loads a powder data histogram into the project. 2124 2124 … … 2131 2131 :param str histname: A name for the histogram to be created. 2132 2132 :param str iparams: The instrument parameters file, a filename. 2133 :param float Tmin: Minimum 2theta or TOF (m s) for dataset to be simulated2134 :param float Tmax: Maximum 2theta or TOF ( ms) for dataset to be simulated2135 :param float Tstep: Step size in 2theta or TOF ( ms) for dataset to be simulated2133 :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 2136 2136 :param float wavelength: Wavelength for CW instruments, overriding the value 2137 2137 in the instrument parameters file if specified. … … 2143 2143 :param list phases: Phases to link to the new histogram. Use proj.phases() to link to 2144 2144 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. 2145 2147 2146 2148 :returns: A :class:`G2PwdrData` object representing the histogram … … 2184 2186 Tmax = rd.powderdata[0][-1] 2185 2187 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) 2187 2189 if histname in self.data: 2188 2190 G2fil.G2Print("Warning - redefining histogram", histname)
Note: See TracChangeset
for help on using the changeset viewer.