lsst-felis 27.2024.3900__tar.gz → 27.2024.4100__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of lsst-felis might be problematic. Click here for more details.

Files changed (34) hide show
  1. {lsst_felis-27.2024.3900/python/lsst_felis.egg-info → lsst_felis-27.2024.4100}/PKG-INFO +1 -1
  2. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/tap.py +7 -4
  3. lsst_felis-27.2024.4100/python/felis/version.py +2 -0
  4. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100/python/lsst_felis.egg-info}/PKG-INFO +1 -1
  5. lsst_felis-27.2024.3900/python/felis/version.py +0 -2
  6. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/COPYRIGHT +0 -0
  7. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/LICENSE +0 -0
  8. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/README.rst +0 -0
  9. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/pyproject.toml +0 -0
  10. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/__init__.py +0 -0
  11. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/cli.py +0 -0
  12. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/datamodel.py +0 -0
  13. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/db/__init__.py +0 -0
  14. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/db/dialects.py +0 -0
  15. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/db/sqltypes.py +0 -0
  16. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/db/utils.py +0 -0
  17. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/db/variants.py +0 -0
  18. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/metadata.py +0 -0
  19. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/py.typed +0 -0
  20. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/tests/__init__.py +0 -0
  21. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/tests/postgresql.py +0 -0
  22. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/felis/types.py +0 -0
  23. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/lsst_felis.egg-info/SOURCES.txt +0 -0
  24. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/lsst_felis.egg-info/dependency_links.txt +0 -0
  25. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/lsst_felis.egg-info/entry_points.txt +0 -0
  26. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/lsst_felis.egg-info/requires.txt +0 -0
  27. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/lsst_felis.egg-info/top_level.txt +0 -0
  28. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/python/lsst_felis.egg-info/zip-safe +0 -0
  29. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/setup.cfg +0 -0
  30. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/tests/test_cli.py +0 -0
  31. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/tests/test_datamodel.py +0 -0
  32. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/tests/test_metadata.py +0 -0
  33. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/tests/test_postgresql.py +0 -0
  34. {lsst_felis-27.2024.3900 → lsst_felis-27.2024.4100}/tests/test_tap.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lsst-felis
3
- Version: 27.2024.3900
3
+ Version: 27.2024.4100
4
4
  Summary: A vocabulary for describing catalogs and acting on those descriptions
5
5
  Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
6
6
  License: GNU General Public License v3 or later (GPLv3+)
@@ -407,7 +407,9 @@ class TapLoadingVisitor:
407
407
  felis_type = FelisType.felis_type(felis_datatype.value)
408
408
  column.datatype = column_obj.votable_datatype or felis_type.votable_name
409
409
 
410
- column.arraysize = column_obj.votable_arraysize or column_obj.length
410
+ column.arraysize = column_obj.votable_arraysize or (
411
+ column_obj.length if (column_obj.length is not None and column_obj.length > 1) else None
412
+ )
411
413
  if (felis_type.is_timestamp or column_obj.datatype == "text") and column.arraysize is None:
412
414
  column.arraysize = "*"
413
415
 
@@ -419,7 +421,7 @@ class TapLoadingVisitor:
419
421
  return False
420
422
 
421
423
  # Handle the deprecated size attribute
422
- arraysize = column_obj.votable_arraysize
424
+ arraysize = column.arraysize
423
425
  if arraysize is not None and arraysize != "":
424
426
  if isinstance(arraysize, int):
425
427
  column.size = arraysize
@@ -427,8 +429,9 @@ class TapLoadingVisitor:
427
429
  column.size = int(arraysize)
428
430
  elif bool(re.match(r"^[0-9]+\*$", arraysize)):
429
431
  column.size = int(arraysize.replace("*", ""))
430
- if column.size is not None:
431
- logger.debug(f"Set size to {column.size} for {column.column_name} from arraysize {arraysize}")
432
+
433
+ if column.size is not None:
434
+ logger.debug(f"Set size to {column.size} for {column.column_name} with arraysize {arraysize}")
432
435
 
433
436
  column.xtype = column_obj.votable_xtype
434
437
  column.description = column_obj.description
@@ -0,0 +1,2 @@
1
+ __all__ = ["__version__"]
2
+ __version__ = "27.2024.4100"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lsst-felis
3
- Version: 27.2024.3900
3
+ Version: 27.2024.4100
4
4
  Summary: A vocabulary for describing catalogs and acting on those descriptions
5
5
  Author-email: Rubin Observatory Data Management <dm-admin@lists.lsst.org>
6
6
  License: GNU General Public License v3 or later (GPLv3+)
@@ -1,2 +0,0 @@
1
- __all__ = ["__version__"]
2
- __version__ = "27.2024.3900"