geocif 0.1.43__tar.gz → 0.1.44__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.
- {geocif-0.1.43/geocif.egg-info → geocif-0.1.44}/PKG-INFO +1 -1
- {geocif-0.1.43 → geocif-0.1.44}/geocif/cei/indices.py +1 -3
- {geocif-0.1.43 → geocif-0.1.44}/geocif/geocif.py +1 -1
- {geocif-0.1.43 → geocif-0.1.44}/geocif/indices_runner_v2.py +1 -1
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/correlations.py +1 -1
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/stages.py +0 -5
- {geocif-0.1.43 → geocif-0.1.44/geocif.egg-info}/PKG-INFO +1 -1
- {geocif-0.1.43 → geocif-0.1.44}/setup.py +1 -1
- {geocif-0.1.43 → geocif-0.1.44}/LICENSE +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/MANIFEST.in +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/README.md +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/agmet/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/agmet/geoagmet.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/agmet/plot.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/agmet/utils.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/analysis.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/constants.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/features.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/geo.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/geocif.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/metadata.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/backup/models.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/cei/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/cei/definitions.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/experiments.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/indices_runner.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/logger.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/correlations_backup.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/embedding.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/feature_engineering.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/feature_selection.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/outliers.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/outlook.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/output.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/spatial_autocorrelation.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/stats.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/trainers.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/trend.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/ml/xai.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/playground/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/playground/automl.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/playground/misc.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/utils.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/viz/__init__.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif/viz/plot.py +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif.egg-info/SOURCES.txt +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif.egg-info/dependency_links.txt +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif.egg-info/not-zip-safe +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/geocif.egg-info/top_level.txt +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/requirements.txt +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/setup.cfg +0 -0
- {geocif-0.1.43 → geocif-0.1.44}/tests/test_geocif.py +0 -0
@@ -193,7 +193,7 @@ class CEIs:
|
|
193
193
|
df = self.df_harvest_year
|
194
194
|
|
195
195
|
if not df.empty:
|
196
|
-
self.country = df[col].unique()[0]
|
196
|
+
self.country = df[col].unique()[0].lower().replace(" ", "_")
|
197
197
|
else:
|
198
198
|
raise ValueError("Dataframe is empty")
|
199
199
|
|
@@ -418,8 +418,6 @@ class CEIs:
|
|
418
418
|
if not self.redo:
|
419
419
|
mask_year = self.harvest_year < current_year - 1
|
420
420
|
|
421
|
-
if os.path.isfile(intermediate_file) and mask_year:
|
422
|
-
return None
|
423
421
|
if os.path.isfile(cei_file) and mask_year:
|
424
422
|
return None
|
425
423
|
|
@@ -745,7 +745,7 @@ class Geocif:
|
|
745
745
|
|
746
746
|
if self.median_area_as_feature:
|
747
747
|
df = fe.compute_median_statistics(
|
748
|
-
df, self.
|
748
|
+
df, self.all_seasons_with_yield, self.number_median_years, "Area (ha)"
|
749
749
|
)
|
750
750
|
|
751
751
|
if self.lag_yield_as_feature:
|
@@ -166,7 +166,7 @@ class cei_runner(base.BaseGeo):
|
|
166
166
|
# This is done to test the code for these countries
|
167
167
|
combinations = [i for i in combinations if "afghanistan_maize_s1" in i[3]]
|
168
168
|
|
169
|
-
if
|
169
|
+
if True:
|
170
170
|
num_cpu = int(cpu_count() * 0.5)
|
171
171
|
with Pool(num_cpu) as p:
|
172
172
|
for i, _ in enumerate(p.imap_unordered(indices.process, combinations)):
|
@@ -25,11 +25,6 @@ def add_stage_information(df, method):
|
|
25
25
|
# Stage looks like this: 13_12_11
|
26
26
|
# Starting Stage will look like this: 13
|
27
27
|
# Ending Stage will look like this: 11
|
28
|
-
# If stage is a list then convert it to a string
|
29
|
-
#
|
30
|
-
#
|
31
|
-
|
32
|
-
breakpoint()
|
33
28
|
df["Starting Stage"] = df["Stage"].apply(lambda x: int(x.split("_")[0]))
|
34
29
|
df["Ending Stage"] = df["Stage"].apply(lambda x: int(x.split("_")[-1]))
|
35
30
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|