Skip to content

Commit 4f907d6

Browse files
committed
Fixed imports
1 parent 4cfd414 commit 4f907d6

2 files changed

Lines changed: 23 additions & 11 deletions

File tree

geodepy/point_in_polygon.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
from __future__ import annotations
1+
#!/usr/bin/env python3
2+
3+
"""
4+
Geoscience Australia - Python Geodesy Package
5+
Point in Polygon Module
6+
"""
27

38
import re
49
import math
@@ -12,9 +17,9 @@
1217

1318
from pyproj import CRS, Transformer
1419

15-
import geodepy.convert
16-
from geodepy.constants import Transformation, TransformationSD
17-
import geodepy.transform
20+
import convert
21+
from constants import Transformation, TransformationSD
22+
import transform
1823

1924
PLATE_ID_RE = re.compile(r"^[A-Z]{2}$")
2025

@@ -260,7 +265,7 @@ def plate_from_xyz(x, y, z, plate_index):
260265
:return: plate ID
261266
:rtype: Array of strings or None
262267
"""
263-
lat, lon, h = geodepy.convert.xyz2llh(x, y, z)
268+
lat, lon, h = convert.xyz2llh(x, y, z)
264269
return plate_from_ll(lat, lon, plate_index)
265270

266271
@dataclass(frozen=True)
@@ -496,6 +501,6 @@ def universal_plate_motion_transformation(x ,y, z,
496501
transformation = plate_transformation(plate_id, poles_file, ref_epoch=ref_epoch)
497502

498503
# Complete transformation between given dates
499-
xtrans, ytrans, ztrans, vcv = geodepy.transform.plate_motion_transformation(x, y, z, from_epoch, to_epoch, transformation, vcv)
504+
xtrans, ytrans, ztrans, vcv = transform.plate_motion_transformation(x, y, z, from_epoch, to_epoch, transformation, vcv)
500505

501506
return xtrans, ytrans, ztrans, vcv

geodepy/universal_transform.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1+
#!/usr/bin/env python3
2+
3+
"""
4+
Geoscience Australia - Python Geodesy Package
5+
Universal Transformation Module
6+
"""
7+
18
import json
29
from datetime import date
3-
import geodepy.transform as tr
4-
import geodepy.constants as gc
5-
import geodepy.geodesy as gg
6-
import geodepy.convert as con
710
import numpy as np
811
import datetime
9-
import geodepy.point_in_polygon as pp
12+
13+
import transform as tr
14+
import constants as gc
15+
import convert as con
16+
import point_in_polygon as pp
1017

1118
# Setup for transformation paths
1219
with open("other_files/transformation_routes_v3.json", "r", encoding="utf-8") as f:

0 commit comments

Comments
 (0)