Skip to content

Commit

Permalink
hardlink not available in py3.9 - replace with copy
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed Oct 13, 2023
1 parent 7d4f5c5 commit d78d68d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 1 addition & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ def test_mult_camera(
src_files = []
for src_file_key in mult_ext_param_dict.keys():
src_file = tmp_path.joinpath(src_file_key).with_suffix(rgb_byte_src_file.suffix)
src_file.hardlink_to(rgb_byte_src_file)
shutil.copy(rgb_byte_src_file, src_file)
src_files.append(src_file)

_ortho(
Expand Down
7 changes: 0 additions & 7 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,6 @@ def test_oty_reader_crs(ngi_oty_ext_param_file: Path, ngi_crs: str):
assert reader.crs == rio.CRS.from_string(ngi_crs)


# TODO: test lla_crs
# - should be somewhat covered by test_rio_transform, perhaps we could add some geographic CRSs to fixtures
# - could test CSV with e.g. lla-rpy file & crs & lla_crs with different vert datums, then check read xyz height is
# different to lla height
# - this should mainly just test that lla_crs is set & used internally in the class. when it is used, we should assume
# rio transform works.
# TODO: radians in CSV
# - perhaps add second fixture that rewrites e.g. ngi_xyz_opk.csv in radians (perhaps a parameterised fixture),
# then a test that reads both radians and degrees files and compares results. could do same for odm_lla_rpy.csv.
# TODO: combine test_oty_write_ext_param & test_oty_read_ext_param, perhaps with a new ext_param_dict fixture

0 comments on commit d78d68d

Please sign in to comment.