Skip to content

Commit

Permalink
add version to setup py; replace tostring
Browse files Browse the repository at this point in the history
  • Loading branch information
akorosov committed Jun 15, 2022
1 parent 1c1876a commit ec4c766
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nansat/vrt.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def _init_from_array(self, array, **kwargs):
array_shape = array.shape
binary_file = self.filename.replace('.vrt', '.raw')
ofile = gdal.VSIFOpenL(str(binary_file), str('wb'))
array_bytes = array.tostring()
array_bytes = array.tobytes()
array = None
batch_size = 0x20000000 # 512 MB
for i in range(0,len(array_bytes),batch_size):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
AUTHOR_EMAIL = "nansat-dev@googlegroups.com"
PLATFORMS = ["Linux", "OS X", "Windows"]
ISRELEASED = True
VERSION = os.getenv('NANSAT_RELEASE', '0.0.0dev').lstrip('v')
VERSION = os.getenv('NANSAT_RELEASE', '1.5.2').lstrip('v')
REQS = [
"Pillow",
"pythesint",
Expand Down

0 comments on commit ec4c766

Please sign in to comment.