Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/jveitchmichaelis/rascal into…
Browse files Browse the repository at this point in the history
… dev
  • Loading branch information
cylammarco committed Jan 23, 2020
2 parents b07b13e + 71db963 commit 02bcff0
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions rascal/calibrator.py
Original file line number Diff line number Diff line change
Expand Up @@ -678,12 +678,10 @@ def add_atlas(self,
'''

if min_wavelength is None:
min_wavelength = self.min_wavelength - \
max(self.range_tolerance, self.linearity_thresh)
min_wavelength = self.min_wavelength - self.range_tolerance

if max_wavelength is None:
max_wavelength = self.max_wavelength + \
max(self.range_tolerance, self.linearity_thresh)
max_wavelength = self.max_wavelength + self.range_tolerance

if isinstance(elements, str):
elements = [elements]
Expand Down Expand Up @@ -953,9 +951,18 @@ def match_peaks_to_atlas(self, fit, tolerance=1., polydeg=5):
coeff = models.robust_polyfit(x_match, y_match, polydeg)
return coeff, x_match, y_match

def plot_search_space(self, best_p=None):
def plot_search_space(self, coeff=None):
'''
???
Plots the peak/arc line pairs that are considered as potential match
candidates.
If fit coefficients are provided, the model solution will be
overplotted.
Parameters
----------
best_p : list
List of best polynomial coefficients
'''
plt.figure(figsize=(16, 9))

Expand Down

0 comments on commit 02bcff0

Please sign in to comment.