Changeset 2b2d431 in sasmodels
 Timestamp:
 May 22, 2018 8:01:54 AM (3 months ago)
 Branches:
 master, ESS_GUI, beta_approx, beta_approx_lazy_results, beta_approx_new_R_eff, doc_update, ticket1102pinhole, ticket1104resolution, ticket1112, ticket1142pluginreload, ticket1148Sqscalebackground, ticket608userdefinedweights
 Children:
 bbb887d
 Parents:
 65fbf7c
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

sasmodels/resolution.py
r87964ac r2b2d431 86 86 87 87 # Protect against models which are not defined for very low q. Limit 88 # the smallest q value evaluated (in absolute) to 0.02*min 88 # the smallest q value evaluated to 0.02*min. Note that negative q 89 # values are trimmed even for broad resolution. Although not possible 90 # from the geometry, they may appear since we are using a truncated 91 # gaussian to represent resolution rather than a skew distribution. 89 92 cutoff = MINIMUM_ABSOLUTE_Q*np.min(self.q) 90 self.q_calc = self.q_calc[ abs(self.q_calc)>= cutoff]93 self.q_calc = self.q_calc[self.q_calc >= cutoff] 91 94 92 95 # Build weight matrix from calculated q values … … 94 97 self.q_calc, self.q, np.maximum(q_width, MINIMUM_RESOLUTION), 95 98 nsigma=nsigma) 96 self.q_calc = abs(self.q_calc)97 99 98 100 def apply(self, theory):
Note: See TracChangeset
for help on using the changeset viewer.