Skip to content

Commit

Permalink
Fix typo in variable name, update version number, and improved error …
Browse files Browse the repository at this point in the history
…message.
  • Loading branch information
AdamJCrawford committed Nov 8, 2023
1 parent 802af5d commit bb39a68
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion eedl/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.2023.10.18"
__version__ = "0.2023.11.8"
4 changes: 2 additions & 2 deletions eedl/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def extract(self):
zonal_features = zonal_features_filtered

image = aoi_collection.filter(ee.Filter.eq("system:time_start", image_info[1])).first() # Get the image from the collection again based on ID.
timsetamp_in_seconds = int(str(image_info[1])[:-3]) # We could divide by 1000, but then we'd coerce back from a float. This is precise.
date_string = datetime.datetime.fromtimestamp(timsetamp_in_seconds, tz=datetime.timezone.utc).strftime("%Y-%m-%d")
timestamp_in_seconds = int(str(image_info[1])[:-3]) # We could divide by 1000, but then we'd coerce back from a float. This is precise.
date_string = datetime.datetime.fromtimestamp(timestamp_in_seconds, tz=datetime.timezone.utc).strftime("%Y-%m-%d")

self._single_item_extract(image, task_registry, zonal_features, aoi_attr, ee_geom, date_string, aoi_download_folder)

Expand Down
2 changes: 1 addition & 1 deletion eedl/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def wait_for_images(self,
self.download_ready_images(download_location)
except OSError:
if try_again_disk_full:
print("OSError reported. Disk may be full - will try again - clear space")
print("OSError reported. Invalid disk or the disk may be full - will try again - clear space")
pass
else:
raise
Expand Down
1 change: 1 addition & 0 deletions examples/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ def test_simple() -> None:
# We need to make it check and report whether the export on the EE side was successful. This test "passed" because Earth Engine failed and there wasn't anything to download (oops)
# Adam, make sure to set the folder you want results to be downloaded to
eedl.image.main_task_registry.wait_for_images(r"D:\ee_export_test", sleep_time=60, callback="mosaic")

2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ long_description_content_type=text/markdown
long_description=file: README.md
platforms = unix, linux, osx, cygwin, win32
url = https://github.com/water3d/eedl
version = 0.2023.10.18
version = 0.2023.11.8
classifiers =
Programming Language :: Python :: 3
Programming Language :: Python :: 3 :: Only
Expand Down

0 comments on commit bb39a68

Please sign in to comment.