geocif 0.1.21__tar.gz → 0.1.22__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.
Files changed (48) hide show
  1. {geocif-0.1.21/geocif.egg-info → geocif-0.1.22}/PKG-INFO +1 -1
  2. {geocif-0.1.21 → geocif-0.1.22}/geocif/logger.py +23 -2
  3. {geocif-0.1.21 → geocif-0.1.22}/geocif/utils.py +0 -23
  4. {geocif-0.1.21 → geocif-0.1.22/geocif.egg-info}/PKG-INFO +1 -1
  5. {geocif-0.1.21 → geocif-0.1.22}/setup.py +1 -1
  6. {geocif-0.1.21 → geocif-0.1.22}/LICENSE +0 -0
  7. {geocif-0.1.21 → geocif-0.1.22}/MANIFEST.in +0 -0
  8. {geocif-0.1.21 → geocif-0.1.22}/README.md +0 -0
  9. {geocif-0.1.21 → geocif-0.1.22}/geocif/__init__.py +0 -0
  10. {geocif-0.1.21 → geocif-0.1.22}/geocif/agmet/__init__.py +0 -0
  11. {geocif-0.1.21 → geocif-0.1.22}/geocif/agmet/geoagmet.py +0 -0
  12. {geocif-0.1.21 → geocif-0.1.22}/geocif/agmet/plot.py +0 -0
  13. {geocif-0.1.21 → geocif-0.1.22}/geocif/agmet/utils.py +0 -0
  14. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/__init__.py +0 -0
  15. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/constants.py +0 -0
  16. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/features.py +0 -0
  17. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/geo.py +0 -0
  18. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/geocif.py +0 -0
  19. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/metadata.py +0 -0
  20. {geocif-0.1.21 → geocif-0.1.22}/geocif/backup/models.py +0 -0
  21. {geocif-0.1.21 → geocif-0.1.22}/geocif/cei/__init__.py +0 -0
  22. {geocif-0.1.21 → geocif-0.1.22}/geocif/cei/definitions.py +0 -0
  23. {geocif-0.1.21 → geocif-0.1.22}/geocif/cei/indices.py +0 -0
  24. {geocif-0.1.21 → geocif-0.1.22}/geocif/geocif.py +0 -0
  25. {geocif-0.1.21 → geocif-0.1.22}/geocif/indices_runner.py +0 -0
  26. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/__init__.py +0 -0
  27. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/analysis.py +0 -0
  28. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/correlations.py +0 -0
  29. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/embedding.py +0 -0
  30. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/feature_engineering.py +0 -0
  31. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/feature_selection.py +0 -0
  32. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/misc.py +0 -0
  33. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/outliers.py +0 -0
  34. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/outlook.py +0 -0
  35. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/output.py +0 -0
  36. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/stages.py +0 -0
  37. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/stats.py +0 -0
  38. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/trainers.py +0 -0
  39. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/trend.py +0 -0
  40. {geocif-0.1.21 → geocif-0.1.22}/geocif/ml/xai.py +0 -0
  41. {geocif-0.1.21 → geocif-0.1.22}/geocif.egg-info/SOURCES.txt +0 -0
  42. {geocif-0.1.21 → geocif-0.1.22}/geocif.egg-info/dependency_links.txt +0 -0
  43. {geocif-0.1.21 → geocif-0.1.22}/geocif.egg-info/not-zip-safe +0 -0
  44. {geocif-0.1.21 → geocif-0.1.22}/geocif.egg-info/requires.txt +0 -0
  45. {geocif-0.1.21 → geocif-0.1.22}/geocif.egg-info/top_level.txt +0 -0
  46. {geocif-0.1.21 → geocif-0.1.22}/requirements.txt +0 -0
  47. {geocif-0.1.21 → geocif-0.1.22}/setup.cfg +0 -0
  48. {geocif-0.1.21 → geocif-0.1.22}/tests/test_geocif.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geocif
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: Models to visualize and forecast crop conditions and yields
5
5
  Home-page: https://ritviksahajpal.github.io/yield_forecasting/
6
6
  Author: Ritvik Sahajpal
@@ -5,7 +5,28 @@ from pathlib import Path
5
5
  import arrow as ar
6
6
  import logzero
7
7
 
8
- import utils
8
+
9
+ def read_config(path_config_file):
10
+ """
11
+
12
+ Args:
13
+ path_config_file ():
14
+
15
+ Returns:
16
+
17
+ """
18
+ from configparser import ConfigParser, ExtendedInterpolation
19
+
20
+ parser = ConfigParser(
21
+ inline_comment_prefixes=(";",), interpolation=ExtendedInterpolation()
22
+ )
23
+
24
+ try:
25
+ parser.read(path_config_file)
26
+ except Exception as e:
27
+ raise IOError(f"Cannot read {path_config_file}: {e}")
28
+
29
+ return parser
9
30
 
10
31
 
11
32
  class Logger:
@@ -62,7 +83,7 @@ def setup_logger_parser(path_config_file, name_project="geocif", name_file="ml",
62
83
  Returns:
63
84
 
64
85
  """
65
- parser = utils.read_config(path_config_file)
86
+ parser = read_config(path_config_file)
66
87
  dir_log = parser.get("PATHS", "dir_log")
67
88
 
68
89
  logger = Logger(
@@ -100,29 +100,6 @@ def matplotlib_setup():
100
100
  plt.rcParams["ytick.color"] = "#333F4B"
101
101
 
102
102
 
103
- def read_config(path_config_file):
104
- """
105
-
106
- Args:
107
- path_config_file ():
108
-
109
- Returns:
110
-
111
- """
112
- from configparser import ConfigParser, ExtendedInterpolation
113
-
114
- parser = ConfigParser(
115
- inline_comment_prefixes=(";",), interpolation=ExtendedInterpolation()
116
- )
117
-
118
- try:
119
- parser.read(path_config_file)
120
- except Exception as e:
121
- raise IOError(f"Cannot read {path_config_file}: {e}")
122
-
123
- return parser
124
-
125
-
126
103
  def delete_empty_dirs(_dir):
127
104
  """
128
105
  Cleanup by deleting folders which have no files in them. Delete folders which only have empty subdirs
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: geocif
3
- Version: 0.1.21
3
+ Version: 0.1.22
4
4
  Summary: Models to visualize and forecast crop conditions and yields
5
5
  Home-page: https://ritviksahajpal.github.io/yield_forecasting/
6
6
  Author: Ritvik Sahajpal
@@ -50,6 +50,6 @@ setup(
50
50
  test_suite='tests',
51
51
  tests_require=test_requirements,
52
52
  url='https://ritviksahajpal.github.io/yield_forecasting/',
53
- version='0.1.21',
53
+ version='0.1.22',
54
54
  zip_safe=False,
55
55
  )
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