lsst-felis 29.2025.1800__py3-none-any.whl → 29.2025.1900__py3-none-any.whl

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.

felis/cli.py CHANGED
@@ -63,7 +63,10 @@ loglevel_choices = ["CRITICAL", "FATAL", "ERROR", "WARNING", "INFO", "DEBUG"]
63
63
  help="Felis log file path",
64
64
  )
65
65
  @click.option(
66
- "--id-generation", is_flag=True, help="Generate IDs for all objects that do not have them", default=False
66
+ "--id-generation/--no-id-generation",
67
+ is_flag=True,
68
+ help="Generate IDs for all objects that do not have them",
69
+ default=True,
67
70
  )
68
71
  @click.pass_context
69
72
  def cli(ctx: click.Context, log_level: str, log_file: str | None, id_generation: bool) -> None:
@@ -72,6 +75,8 @@ def cli(ctx: click.Context, log_level: str, log_file: str | None, id_generation:
72
75
  ctx.obj["id_generation"] = id_generation
73
76
  if ctx.obj["id_generation"]:
74
77
  logger.info("ID generation is enabled")
78
+ else:
79
+ logger.info("ID generation is disabled")
75
80
  if log_file:
76
81
  logging.basicConfig(filename=log_file, level=log_level)
77
82
  else:
felis/datamodel.py CHANGED
@@ -504,6 +504,26 @@ class Column(BaseObject):
504
504
  """
505
505
  return DataType(value)
506
506
 
507
+ @model_validator(mode="after")
508
+ def check_votable_xtype(self) -> Column:
509
+ """Set the default value for the ``votable_xtype`` field, which
510
+ corresponds to an Extended Datatype or ``xtype`` in the IVOA VOTable
511
+ standard.
512
+
513
+ Returns
514
+ -------
515
+ `Column`
516
+ The column being validated.
517
+
518
+ Notes
519
+ -----
520
+ This is currently only set automatically for the Felis ``timestamp``
521
+ datatype.
522
+ """
523
+ if self.datatype == DataType.timestamp and self.votable_xtype is None:
524
+ self.votable_xtype = "timestamp"
525
+ return self
526
+
507
527
 
508
528
  class Constraint(BaseObject):
509
529
  """Table constraint model."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lsst-felis
3
- Version: 29.2025.1800
3
+ Version: 29.2025.1900
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,6 +1,6 @@
1
1
  felis/__init__.py,sha256=HnwWzLaPOSnPzAoppSIHzTrGfixEgvkzJdBxa8-03cw,1294
2
- felis/cli.py,sha256=1a1wFYG5t1nZnXQhNtUA9WnXOyI3ECLXfcMZsk2AuYM,15578
3
- felis/datamodel.py,sha256=VC11uKxSumksen_3zyCkH9l9A_BcTjMib341fLyOLMU,43068
2
+ felis/cli.py,sha256=hHixypAU3y0y4DiZ1vyKHp0QvMLWiR6_jVLl6st3Sgg,15668
3
+ felis/datamodel.py,sha256=iKL-B2CkiVLKDrlHFkRC9UXGg9uEEwsMEg34Hyws2tM,43686
4
4
  felis/diff.py,sha256=z4ZzUocFYVa2y22BWUAMkeeLORmMtaWIDGTVaUE1OIM,7181
5
5
  felis/metadata.py,sha256=cYx_qizkLBqcoxWV46h4TbwTi1KVJAkuA2OuUmD-K5k,13536
6
6
  felis/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -16,11 +16,11 @@ felis/schemas/tap_schema_std.yaml,sha256=sPW-Vk72nY0PFpCvP5d8L8fWvhkif-x32sGtcfD
16
16
  felis/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
17
17
  felis/tests/postgresql.py,sha256=B_xk4fLual5-viGDqP20r94okuc0pbSvytRH_L0fvMs,4035
18
18
  felis/tests/run_cli.py,sha256=Gg8loUIGj9t6KlkRKrEc9Z9b5dtlkpJy94ORuj4BrxU,2503
19
- lsst_felis-29.2025.1800.dist-info/licenses/COPYRIGHT,sha256=vJAFLFTSF1mhy9eIuA3P6R-3yxTWKQgpig88P-1IzRw,129
20
- lsst_felis-29.2025.1800.dist-info/licenses/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
21
- lsst_felis-29.2025.1800.dist-info/METADATA,sha256=3xTfEv824lCTCxglKRqCuCyLdEACEp1jcWYM8Hq7JZw,1433
22
- lsst_felis-29.2025.1800.dist-info/WHEEL,sha256=wXxTzcEDnjrTwFYjLPcsW_7_XihufBwmpiBeiXNBGEA,91
23
- lsst_felis-29.2025.1800.dist-info/entry_points.txt,sha256=Gk2XFujA_Gp52VBk45g5kim8TDoMDJFPctsMqiq72EM,40
24
- lsst_felis-29.2025.1800.dist-info/top_level.txt,sha256=F4SvPip3iZRVyISi50CHhwTIAokAhSxjWiVcn4IVWRI,6
25
- lsst_felis-29.2025.1800.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
26
- lsst_felis-29.2025.1800.dist-info/RECORD,,
19
+ lsst_felis-29.2025.1900.dist-info/licenses/COPYRIGHT,sha256=vJAFLFTSF1mhy9eIuA3P6R-3yxTWKQgpig88P-1IzRw,129
20
+ lsst_felis-29.2025.1900.dist-info/licenses/LICENSE,sha256=jOtLnuWt7d5Hsx6XXB2QxzrSe2sWWh3NgMfFRetluQM,35147
21
+ lsst_felis-29.2025.1900.dist-info/METADATA,sha256=hxHC5UOffAThgTIaI5qTlYcJLfpU2b2-AxwlGa0FWVw,1433
22
+ lsst_felis-29.2025.1900.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
23
+ lsst_felis-29.2025.1900.dist-info/entry_points.txt,sha256=Gk2XFujA_Gp52VBk45g5kim8TDoMDJFPctsMqiq72EM,40
24
+ lsst_felis-29.2025.1900.dist-info/top_level.txt,sha256=F4SvPip3iZRVyISi50CHhwTIAokAhSxjWiVcn4IVWRI,6
25
+ lsst_felis-29.2025.1900.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
26
+ lsst_felis-29.2025.1900.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.1.0)
2
+ Generator: setuptools (80.3.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5