ecoscape-utilities 0.0.31__tar.gz → 0.0.32__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ecoscape-utilities might be problematic. Click here for more details.

@@ -1,4 +1,4 @@
1
- Copyright 2023, Anonymous Authors.
1
+ Copyright 2023, The Regents of the University of California.
2
2
 
3
3
  Redistribution and use in source and binary forms, with or without modification,
4
4
  are permitted provided that the following conditions are met:
@@ -1,7 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecoscape-utilities
3
- Version: 0.0.31
3
+ Version: 0.0.32
4
4
  Summary: A collection of EcoScape utilities.
5
+ Author-email: Luca de Alfaro <luca@ucsc.edu>, Coen Adler <ctadler@ucsc.edu>, Artie Nazarov <anazarov@ucsc.edu>, Natalia Ocampo-Peñuela <nocampop@ucsc.edu>, Jasmine Tai <cjtai@ucsc.edu>, Natalie Valett <nvalett@ucsc.edu>
6
+ Project-URL: Homepage, https://github.com/ecoscape-earth/ecoscape-utilities
7
+ Project-URL: Bug Tracker, https://github.com/ecoscape-earth/ecoscape-utilities/issues
5
8
  Classifier: Programming Language :: Python :: 3
6
9
  Classifier: License :: OSI Approved :: BSD License
7
10
  Classifier: Operating System :: OS Independent
@@ -22,3 +25,12 @@ These are not packages distributed with pip. To install on Colab, simply do:
22
25
 
23
26
  !pip install git+https://github.com/ecoscape-earth/ecoscape-utilities.git
24
27
 
28
+ ## Authors
29
+
30
+ * Luca de Alfaro (luca@ucsc.edu)
31
+ * Natalia Ocampo-Peñuela (nocampop@ucsc.edu)
32
+ * Coen Adler (ctadler@ucsc.edu)
33
+ * Artie Nazarov (anazarov@ucsc.edu)
34
+ * Natalie Valett (nvalett@ucsc.edu)
35
+ * Jasmine Tai (cjtai@ucsc.edu)
36
+
@@ -6,3 +6,12 @@ These are not packages distributed with pip. To install on Colab, simply do:
6
6
 
7
7
  !pip install git+https://github.com/ecoscape-earth/ecoscape-utilities.git
8
8
 
9
+ ## Authors
10
+
11
+ * Luca de Alfaro (luca@ucsc.edu)
12
+ * Natalia Ocampo-Peñuela (nocampop@ucsc.edu)
13
+ * Coen Adler (ctadler@ucsc.edu)
14
+ * Artie Nazarov (anazarov@ucsc.edu)
15
+ * Natalie Valett (nvalett@ucsc.edu)
16
+ * Jasmine Tai (cjtai@ucsc.edu)
17
+
@@ -493,7 +493,7 @@ class Validation(object):
493
493
  If the cached version is not found, it is created.
494
494
  The cached version contains pre-translated coordinates to pixel values.
495
495
  :param obs_fn: Observations filename.
496
- :param geotiff_fn: name of a geotiff (habitat is preferred) used
496
+ :param geotiff_fn: name of a geotiff (repopulation is preferred) used
497
497
  for translating coordinates to pixel coordinates.
498
498
  """
499
499
  self.obs_fn = obs_fn
@@ -594,6 +594,8 @@ class Validation(object):
594
594
  :param weighted_tile_size: size of the tile to attribute grouped weights to
595
595
  :returns: a dataframe with columns repopulation, observation ratio, and weights
596
596
  '''
597
+ assert repop_tif.crs == hab.crs, "Repopulation and habitat geotiffs must have the same CRS"
598
+ assert repop_tif.size == hab.size, "Repopulation and habitat geotiffs must have the same size"
597
599
  df = pd.DataFrame(columns=['repop', 'hab', 'max_repop', 'max_hab', 'obs_ratio', 'lat', 'lng', 'x', 'y', ])
598
600
  count = defaultdict(int)
599
601
  for (square, ratio) in observation_ratios:
@@ -1,7 +1,10 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ecoscape-utilities
3
- Version: 0.0.31
3
+ Version: 0.0.32
4
4
  Summary: A collection of EcoScape utilities.
5
+ Author-email: Luca de Alfaro <luca@ucsc.edu>, Coen Adler <ctadler@ucsc.edu>, Artie Nazarov <anazarov@ucsc.edu>, Natalia Ocampo-Peñuela <nocampop@ucsc.edu>, Jasmine Tai <cjtai@ucsc.edu>, Natalie Valett <nvalett@ucsc.edu>
6
+ Project-URL: Homepage, https://github.com/ecoscape-earth/ecoscape-utilities
7
+ Project-URL: Bug Tracker, https://github.com/ecoscape-earth/ecoscape-utilities/issues
5
8
  Classifier: Programming Language :: Python :: 3
6
9
  Classifier: License :: OSI Approved :: BSD License
7
10
  Classifier: Operating System :: OS Independent
@@ -22,3 +25,12 @@ These are not packages distributed with pip. To install on Colab, simply do:
22
25
 
23
26
  !pip install git+https://github.com/ecoscape-earth/ecoscape-utilities.git
24
27
 
28
+ ## Authors
29
+
30
+ * Luca de Alfaro (luca@ucsc.edu)
31
+ * Natalia Ocampo-Peñuela (nocampop@ucsc.edu)
32
+ * Coen Adler (ctadler@ucsc.edu)
33
+ * Artie Nazarov (anazarov@ucsc.edu)
34
+ * Natalie Valett (nvalett@ucsc.edu)
35
+ * Jasmine Tai (cjtai@ucsc.edu)
36
+
@@ -4,8 +4,15 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "ecoscape-utilities"
7
- version = "0.0.31"
8
- authors = []
7
+ version = "0.0.32"
8
+ authors = [
9
+ {name="Luca de Alfaro", email="luca@ucsc.edu"},
10
+ {name="Coen Adler", email="ctadler@ucsc.edu"},
11
+ {name="Artie Nazarov", email="anazarov@ucsc.edu"},
12
+ {name="Natalia Ocampo-Peñuela", email="nocampop@ucsc.edu"},
13
+ {name="Jasmine Tai", email="cjtai@ucsc.edu"},
14
+ {name="Natalie Valett", email="nvalett@ucsc.edu"}
15
+ ]
9
16
  description = "A collection of EcoScape utilities."
10
17
  readme = "README.md"
11
18
  requires-python = ">=3.7"
@@ -21,3 +28,8 @@ dependencies = {file = ["requirements.txt"]}
21
28
 
22
29
  [tool.setuptools]
23
30
  packages = ["ecoscape_utilities"]
31
+
32
+
33
+ [project.urls]
34
+ "Homepage" = "https://github.com/ecoscape-earth/ecoscape-utilities"
35
+ "Bug Tracker" = "https://github.com/ecoscape-earth/ecoscape-utilities/issues"