Skip to content

Commit

Permalink
Update Raster.shift() to translate (#545)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhugonnet authored Jun 14, 2024
1 parent 4ce2b44 commit 003e13b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- tqdm
- scikit-image=0.*
- scikit-gstat>=1.0,<1.1
- geoutils=0.1.6
- geoutils=0.1.7

# Development-specific, to mirror manually in setup.cfg [options.extras_require].
- pip
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ dependencies:
- tqdm
- scikit-image=0.*
- scikit-gstat>=1.0,<1.1
- geoutils=0.1.6
- geoutils=0.1.7
- pip

# To run CI against latest GeoUtils
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ scipy>=1.0,<1.13
tqdm
scikit-image==0.*
scikit-gstat>=1.0,<1.1
geoutils==0.1.6
geoutils==0.1.7
pip
2 changes: 1 addition & 1 deletion tests/test_coreg/test_affine.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def test_coreg_example_shift(self, shift_px, coreg_class, points_or_raster, verb

# shift DEM by shift_px
shifted_ref = self.ref.copy()
shifted_ref.shift(shift_px[0] * res, shift_px[1] * res, inplace=True)
shifted_ref.translate(shift_px[0] * res, shift_px[1] * res, inplace=True)

shifted_ref_points = shifted_ref.to_pointcloud(
subsample=subsample, force_pixel_offset="center", random_state=42
Expand Down

0 comments on commit 003e13b

Please sign in to comment.