Skip to content

Commit

Permalink
Closes #82
Browse files Browse the repository at this point in the history
  • Loading branch information
Samreay committed Jun 8, 2014
1 parent c3a8009 commit fe4df7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion js/preprocessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function matchTemplate(index, template, lambda, intensity, variance, weights, in
var r = null;
for (var i = 0; i < zs.length; i++) {
r = matchTemplateAtRedshift(intensity, variance, weights, template.interpolatedSpec, offsets[i], intensityAreaFinder, templateAreaFinder, zs[i]);
result.res.push({gof: r[0]/Math.pow(r[1],2.5), chi2: r[0], z: zs[i], scale: r[2], weight: r[1]});
result.res.push({gof: r[0]/Math.pow(r[1],2.5), chi2: r[0], z: parseFloat(zs[i].toFixed(5)), scale: r[2], weight: r[1]});
}
return result;
}
Expand Down
2 changes: 1 addition & 1 deletion js/views.js
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ InterfaceManager.prototype.getTemplateData = function () {
this.detailedSettings.addData('template', false, this.interface.templateColour, r[0].slice(0), r[1].slice(0));
};
InterfaceManager.prototype.clickSpectralLine= function(id) {
this.matchedComparisonActive = false;
this.disableMatchedComparison();
if (this.detailedSettings.waitingForSpectra) {
var currentWavelength = this.spectralLines.getFromID(id).wavelength;
var desiredWavelength = this.detailedSettings.getFocusWavelength();
Expand Down

0 comments on commit fe4df7b

Please sign in to comment.