diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index d9c50d4..4c42a5e 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -34,4 +34,4 @@ jobs: publish_branch: gh-pages github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: _build/ - force_orphan: true \ No newline at end of file + force_orphan: true diff --git a/README.rst b/README.rst index c898fc7..fe030f0 100644 --- a/README.rst +++ b/README.rst @@ -208,6 +208,13 @@ Please include a self-contained example that fully demonstrates your problem or Changelog: ========== +1.2.2dev (unreleased) +===================== + - Fixed bug in get_ffi [#19] + - Fixed missing comments in fits header [#21] + +1.2.1 +====== - Fixed barycentric timing correction with lkspacecraft package - Added from_name method - Added ability to use "TICA" FFIs. This is experimental and might be buggy. diff --git a/src/tesscube/cube.py b/src/tesscube/cube.py index db86ba1..85fb9fc 100644 --- a/src/tesscube/cube.py +++ b/src/tesscube/cube.py @@ -219,13 +219,11 @@ def get_ffi( if time is not None: start = Time(self.tstart + 2457000, format="jd") end = Time(self.tstop + 2457000, format="jd") - t = Time.now() - t = Time(2459343.87182313, format="jd") - if not ((t > start).any() & (t < end).any()): + if not ((time > start).any() & (time < end).any()): raise ValueError( f"Input time is not during Sector {self.sector} observations." ) - ffi_name = self.ffi_names[np.where((t > start))[0][-1]] + ffi_name = self.ffi_names[np.where((time > start))[0][-1]] if index is not None: ffi_name = self.ffi_names[index] diff --git a/src/tesscube/fits.py b/src/tesscube/fits.py index c825aac..cb25215 100644 --- a/src/tesscube/fits.py +++ b/src/tesscube/fits.py @@ -36,7 +36,7 @@ def get_header_dict(cube): hdu.data[k][0] if isinstance(hdu.data[k][0], str) else np.nanmedian(hdu.data[k]), - c, + c if c != "" else hdr[k], ) if (k in hdu.data.columns.names) else fits.Card(k, hdr[k], c)