Coverage for python / lsst / obs / lsst / translators / __init__.py: 92%

12 statements  

« prev     ^ index     » next       coverage.py v7.13.5, created at 2026-04-21 10:44 +0000

1# This file is currently part of obs_lsst but is written to allow it 

2# to be migrated to the astro_metadata_translator package at a later date. 

3# 

4# This product includes software developed by the LSST Project 

5# (http://www.lsst.org). 

6# See the LICENSE file in this directory for details of code ownership. 

7# 

8# Use of this source code is governed by a 3-clause BSD-style 

9# license that can be found in the LICENSE file. 

10 

11from .lsstCam import * 

12from .phosim import * 

13from .ts3 import * 

14from .ts8 import * 

15from .imsim import * 

16from .latiss import * 

17from .lsst_ucdcam import * 

18from .comCam import * 

19from .comCamSim import * 

20from .lsstCamSim import * 

21 

22 

23def _register_translators() -> list[str]: 

24 """Ensure that the translators are loaded. 

25 

26 When this function is imported we are guaranteed to also import the 

27 translators which will automatically register themselves. 

28 

29 Returns 

30 ------- 

31 translators : `list` [ `str` ] 

32 The names of the translators provided by this package. 

33 """ 

34 return [ 

35 LsstCamTranslator.name, 

36 LatissTranslator.name, 

37 LsstComCamTranslator.name, 

38 LsstComCamSimTranslator.name, 

39 LsstCamSimTranslator.name, 

40 LsstCamImSimTranslator.name, 

41 LsstUCDCamTranslator.name, 

42 LsstCamPhoSimTranslator.name, 

43 ]