geocif 0.1.41__tar.gz → 0.1.43__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.41/geocif.egg-info → geocif-0.1.43}/PKG-INFO +1 -1
- {geocif-0.1.41 → geocif-0.1.43}/geocif/cei/indices.py +3 -3
- {geocif-0.1.41 → geocif-0.1.43}/geocif/indices_runner_v2.py +4 -4
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/stages.py +5 -0
- {geocif-0.1.41 → geocif-0.1.43/geocif.egg-info}/PKG-INFO +1 -1
- {geocif-0.1.41 → geocif-0.1.43}/setup.py +1 -1
- {geocif-0.1.41 → geocif-0.1.43}/LICENSE +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/MANIFEST.in +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/README.md +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/agmet/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/agmet/geoagmet.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/agmet/plot.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/agmet/utils.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/analysis.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/constants.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/features.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/geo.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/geocif.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/metadata.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/backup/models.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/cei/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/cei/definitions.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/experiments.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/geocif.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/indices_runner.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/logger.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/correlations.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/correlations_backup.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/embedding.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/feature_engineering.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/feature_selection.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/outliers.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/outlook.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/output.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/spatial_autocorrelation.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/stats.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/trainers.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/trend.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/ml/xai.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/playground/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/playground/automl.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/playground/misc.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/utils.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/viz/__init__.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif/viz/plot.py +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif.egg-info/SOURCES.txt +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif.egg-info/dependency_links.txt +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif.egg-info/not-zip-safe +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/geocif.egg-info/top_level.txt +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/requirements.txt +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/setup.cfg +0 -0
- {geocif-0.1.41 → geocif-0.1.43}/tests/test_geocif.py +0 -0
@@ -607,8 +607,8 @@ class CEIs:
|
|
607
607
|
|
608
608
|
"""
|
609
609
|
# If stage is not a list then convert it to a list
|
610
|
-
if not isinstance(stage, list):
|
611
|
-
|
610
|
+
# if not isinstance(stage, list):
|
611
|
+
# stage = [stage]
|
612
612
|
|
613
613
|
columns = [
|
614
614
|
"Description",
|
@@ -777,7 +777,7 @@ class CEIs:
|
|
777
777
|
ds = compute_indices(df_time_period, df_base_period, index_name)
|
778
778
|
|
779
779
|
# If method is False then set stage to None
|
780
|
-
istage = None if self.method == "full_season" else stage
|
780
|
+
istage = None if self.method == "full_season" else "_".join(map(str, stage))
|
781
781
|
|
782
782
|
if ds:
|
783
783
|
# convert xarray dataset to dataframe and add additional information
|
@@ -47,7 +47,7 @@ class cei_runner(base.BaseGeo):
|
|
47
47
|
|
48
48
|
self.dir_input = Path(self.parser.get("PATHS", "dir_input"))
|
49
49
|
self.base_dir = Path(
|
50
|
-
r"D:\Users\ritvik\projects\GEOGLAM\Output\countries\
|
50
|
+
r"D:\Users\ritvik\projects\GEOGLAM\Output\countries\afghanistan"
|
51
51
|
) # Path(self.parser.get("PATHS", "dir_crop_inputs"))
|
52
52
|
self.do_parallel = self.parser.getboolean("DEFAULT", "do_parallel")
|
53
53
|
|
@@ -164,9 +164,9 @@ class cei_runner(base.BaseGeo):
|
|
164
164
|
# Only keep those entries in combinations where the third elemt is
|
165
165
|
# mozambique, south_africa, angola or dem_people's_rep_of_korea
|
166
166
|
# This is done to test the code for these countries
|
167
|
-
combinations = [i for i in combinations if "
|
167
|
+
combinations = [i for i in combinations if "afghanistan_maize_s1" in i[3]]
|
168
168
|
|
169
|
-
if
|
169
|
+
if False:
|
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)):
|
@@ -195,7 +195,7 @@ def run(path_config_files=[]):
|
|
195
195
|
indices.validate_index_definitions()
|
196
196
|
|
197
197
|
for method in [
|
198
|
-
"
|
198
|
+
"monthly_r", # "dekad_r" # "dekad_r"
|
199
199
|
]: # , "full_season", "phenological_stages", "fraction_season"]:
|
200
200
|
obj = cei_runner(path_config_files)
|
201
201
|
obj.main(method)
|
@@ -25,6 +25,11 @@ 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()
|
28
33
|
df["Starting Stage"] = df["Stage"].apply(lambda x: int(x.split("_")[0]))
|
29
34
|
df["Ending Stage"] = df["Stage"].apply(lambda x: int(x.split("_")[-1]))
|
30
35
|
|
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
|
File without changes
|
File without changes
|