From db146704c1b1edc23886ad779522927a5c75d7c0 Mon Sep 17 00:00:00 2001 From: Tsar Bomba Nick Date: Wed, 21 Jun 2023 22:51:59 -0600 Subject: [PATCH] Added Heasarc cache clearing, Updated pyproject.toml and requirements.txt --- autonicer/autonicer.py | 1 + pyproject.toml | 5 +++-- requirements.txt | 5 +++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/autonicer/autonicer.py b/autonicer/autonicer.py index 8747ede..09b1cf5 100644 --- a/autonicer/autonicer.py +++ b/autonicer/autonicer.py @@ -100,6 +100,7 @@ def call_nicer(self): heasarc = Heasarc() try: warnings.simplefilter("ignore", category=AstropyWarning) + Heasarc.clear_cache() xti = heasarc.query_object( self.obj, mission="nicermastr" ) # calls NICER master catalogue for an input object diff --git a/pyproject.toml b/pyproject.toml index 388f450..16c89ab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "autonicer" -version = "1.2.5" +version = "1.2.6" description = "A program that retrieves NICER observational data sets and performs a default data reduction process on the NICER observational data" authors = [ {name = "Tsar Bomba Nick", email = "njkuechel@protonmail.com" } @@ -14,7 +14,7 @@ readme = "README.md" requires-python = ">=3.8" dependencies = [ "astropy >= 4.2.1", - "astroquery >= 0.4.3", + "astroquery >= 0.4.7.dev8479", "numpy >= 1.20.3", "pandas >= 1.2.4", "termcolor >= 1.1.0", @@ -28,6 +28,7 @@ dev = [ "pytest-cov >= 3.0.0", "black >= 22.6.0", "pytest >= 7.2.0", + "build >= 0.10.0", ] [tool.setuptools] diff --git a/requirements.txt b/requirements.txt index 2aead8c..13b8809 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,8 @@ astropy==5.3 -astroquery==0.4.6 -autonicer @ file:///home/nick/Research/Pulsar_Timing/autoHeasoft/autoNICER +astroquery==0.4.7.dev8479 beautifulsoup4==4.12.2 black==23.3.0 +build==0.10.0 certifi==2023.5.7 cffi==1.15.1 charset-normalizer==3.1.0 @@ -26,6 +26,7 @@ platformdirs==3.5.1 pluggy==1.0.0 pycparser==2.21 pyerfa==2.0.0.3 +pyproject_hooks==1.0.0 pytest==7.3.1 pytest-cov==4.1.0 python-dateutil==2.8.2