From ee48fbc2545898cd0f31d2f751c847cc37effb66 Mon Sep 17 00:00:00 2001 From: Amit Kapadia Date: Wed, 1 Apr 2015 22:14:56 -0700 Subject: [PATCH] fix typo related to BITPIX --- lib/fits.js | 2 +- package.json | 2 +- src/header.verify.coffee | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/fits.js b/lib/fits.js index 495de97..a2171fe 100644 --- a/lib/fits.js +++ b/lib/fits.js @@ -393,7 +393,7 @@ var args, value; args = 1 <= arguments.length ? __slice.call(arguments, 0) : []; value = arguments[0]; - if (!(this.get("BIXPIX") > 0)) { + if (!(this.get("BITPIX") > 0)) { console.warn("BLANK is not to be used for BITPIX = " + (this.get('BITPIX'))); } return parseInt(value); diff --git a/package.json b/package.json index f9428c3..59a78ea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fits", - "version": "0.6.5", + "version": "0.6.6", "author": "Amit Kapadia ", "description": "Library for reading the FITS astronomical file format", "repository": { diff --git a/src/header.verify.coffee b/src/header.verify.coffee index 84d2160..c0259ad 100644 --- a/src/header.verify.coffee +++ b/src/header.verify.coffee @@ -86,7 +86,7 @@ HeaderVerify = BLANK: (args...) -> value = arguments[0] - console.warn "BLANK is not to be used for BITPIX = #{@get('BITPIX')}" unless @get("BIXPIX") > 0 + console.warn "BLANK is not to be used for BITPIX = #{@get('BITPIX')}" unless @get("BITPIX") > 0 return parseInt(value) DATAMIN: (args...) ->