Coverage for pygeodesy/deprecated/nvector.py: 100%

8 statements  

« prev     ^ index     » next       coverage.py v7.2.2, created at 2023-11-12 13:23 -0500

1 

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

3 

4u'''DEPRECATED, use module L{nvectorBase} instead. 

5''' 

6 

7from pygeodesy.interns import NN, _NorthPole_, _SouthPole_ 

8from pygeodesy.lazily import _ALL_DOCS 

9from pygeodesy.nvectorBase import LatLonNvectorBase, \ 

10 NorthPole, SouthPole, \ 

11 NvectorBase, sumOf # PYCHOK exported 

12from pygeodesy.props import deprecated_class # _deprecated_module 

13 

14 

15class Nvector(NvectorBase): 

16 '''DEPRECATED, see class L{NvectorBase}. 

17 ''' 

18 def __init__(self, x, y=None, z=None, h=0, ll=None, datum=None, name=NN): # PYCHOK no cover 

19 deprecated_class(self.__class__) 

20 NvectorBase.__init__(self, x, y=y, z=z, h=h, ll=ll, datum=datum, name=name) 

21 

22 

23__all__ = _ALL_DOCS(LatLonNvectorBase, Nvector, sumOf) + ( 

24 _NorthPole_, _SouthPole_) # constants 

25__version__ = '21.05.20' 

26 

27# _deprecated_module(__name__) 

28 

29# **) MIT License 

30# 

31# Copyright (C) 2016-2023 -- mrJean1 at Gmail -- All Rights Reserved. 

32# 

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

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

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

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

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

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

39# 

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

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

42# 

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

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

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

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

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

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

49# OTHER DEALINGS IN THE SOFTWARE.