1

2# -*- coding: utf-8 -*-

3

4 u'''DEPRECATED constants and interns for export and backward compatibility.

5'''

6

7 from pygeodesy.constants import EPS_2, MANT_DIG, _1_0

8 from pygeodesy.units import Float, Int, Str

9

10__all__ = ()

11__version__ = '23.09.12'

12

13

14 class _Deprecated_Float(Float):

15 '''DEPRECATED, don't use.'''

16 pass

17

18

19 class _Deprecated_Int(Int):

20 '''DEPRECATED, don't use.'''

21 pass

22

23

24 class _Deprecated_Str(Str):

25 '''DEPRECATED, don't use.'''

26 pass

27

28

29 EPS1_2 = _Deprecated_Float(EPS1_2=_1_0 - EPS_2)

30 MANTIS = _Deprecated_Int(MANTIS=MANT_DIG)

31 OK = _Deprecated_Str(OK='OK')

32

33__all__ += EPS1_2.name, MANTIS.name, OK.name

34

35# **) MIT License

36#

37# Copyright (C) 2018-2023 -- mrJean1 at Gmail -- All Rights Reserved.

38#

39# Permission is hereby granted, free of charge, to any person obtaining a

40# copy of this software and associated documentation files (the "Software"),

41# to deal in the Software without restriction, including without limitation

42# the rights to use, copy, modify, merge, publish, distribute, sublicense,

43# and/or sell copies of the Software, and to permit persons to whom the

44# Software is furnished to do so, subject to the following conditions:

45#

46# The above copyright notice and this permission notice shall be included

47# in all copies or substantial portions of the Software.

48#

49# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS

50# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

51# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL

52# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR

53# OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,

54# ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR

55# OTHER DEALINGS IN THE SOFTWARE.