From c05683754e9084baaae6d0c114b2ffe595e4ebda Mon Sep 17 00:00:00 2001 From: Nestor Espinoza Date: Fri, 24 May 2024 12:21:21 -0400 Subject: [PATCH] fixed bug in issue #48, changed version, upd changelog --- CHANGELOG.md | 4 ++++ src/_version.py | 2 +- src/spelunker.py | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b78c03..204f0c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [1.1.18] - 2024-05-24 + +- Fixed bug raised by issue #48 which made `spelunker` to crash. + ## [1.1.17] - 2024-04-23 (Current release) - Animation functions now work properly. diff --git a/src/_version.py b/src/_version.py index 25f78b3..bb6d454 100644 --- a/src/_version.py +++ b/src/_version.py @@ -1 +1 @@ -__version__ = "1.1.17" \ No newline at end of file +__version__ = "1.1.18" diff --git a/src/spelunker.py b/src/spelunker.py index 99f2b90..1a94065 100644 --- a/src/spelunker.py +++ b/src/spelunker.py @@ -1208,7 +1208,7 @@ def fit_gaussian(data): coords = np.where(data==datar.max()) initial_guess[6] = zodical_light - initial_guess[1], initial_guess[2] = int(coords[1]), int(coords[0]) + initial_guess[1], initial_guess[2] = int(coords[1][0]), int(coords[0][0]) popt = ray_curve_fit(gaussian_2d, xx, yy, datar, initial_guess) @@ -2387,4 +2387,4 @@ def save(self, suffix = None): self.quickfit_results['offset'].value[j] )) - fout.close() \ No newline at end of file + fout.close()