diff --git a/pyproject.toml b/pyproject.toml index 8f973eb..f7fc560 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ztfquery" -version = "1.27.1" +version = "1.27.4" description = "Python package to access ZTF data" authors = ["Mickael Rigault ", "Simeon Reusch "] maintainers = ["Mickael Rigault ", "Simeon Reusch "] @@ -39,4 +39,7 @@ requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" [tool.black] -line-length = 88 \ No newline at end of file +line-length = 88 + + + diff --git a/ztfquery/__init__.py b/ztfquery/__init__.py index aeef7b4..2a4d311 100755 --- a/ztfquery/__init__.py +++ b/ztfquery/__init__.py @@ -1,4 +1,4 @@ -__version__ = "1.27.1" +__version__ = "1.27.4" from .io import get_file from .query import ZTFQuery, get_metadata diff --git a/ztfquery/buildurl.py b/ztfquery/buildurl.py index a95781f..493c866 100755 --- a/ztfquery/buildurl.py +++ b/ztfquery/buildurl.py @@ -176,7 +176,7 @@ def parse_scifilename(filename): """ """ from .fields import ccdid_qid_to_rcid - _, filefracday, paddedfield, filtercode, ccd_, imgtypecode, qid_, suffix_ = \ + _, filefracday, paddedfield, filtercode, ccd_, imgtypecode, qid_, *suffix_ = \ os.path.basename( filename ).split("_") year, month, day, fracday = filefrac_to_year_monthday_fracday(filefracday) @@ -197,7 +197,7 @@ def parse_scifilename(filename): "filtercode": filtercode, "filterid": FILTERS.get(filtercode, None), "kind": "sci", - "suffix": "_".join(suffix_), + "suffix": "_".join(np.atleast_1d(suffix_)) }