geomind-ai 1.0.5__tar.gz → 1.0.7__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geomind-ai
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: AI agent for geospatial analysis with Sentinel-2 satellite imagery
5
5
  Author: Harsh Shinde
6
6
  License-Expression: MIT
@@ -3,7 +3,7 @@ GeoMind - Geospatial AI Agent
3
3
 
4
4
  """
5
5
 
6
- __version__ = "1.0.5"
6
+ __version__ = "1.0.7"
7
7
  __author__ = "Harsh Shinde"
8
8
 
9
9
  from .agent import GeoMindAgent
@@ -245,7 +245,7 @@ class GeoMindAgent:
245
245
  Initialize the GeoMind agent.
246
246
 
247
247
  Args:
248
- model: Model name (default: google/gemini-2.0-flash-exp:free)
248
+ model: Model name (default: xiaomi/mimo-v2-flash:free)
249
249
  api_key: OpenRouter API key (required).
250
250
  """
251
251
  self.provider = "openrouter"
@@ -55,6 +55,9 @@ Examples:
55
55
  # With API key
56
56
  geomind --api-key "your-openrouter-api-key"
57
57
 
58
+ # Clear saved API key
59
+ geomind --clear-key
60
+
58
61
  Environment Variables:
59
62
  OPENROUTER_API_KEY Your OpenRouter API key
60
63
  OPENROUTER_MODEL Model to use (default: xiaomi/mimo-v2-flash:free)
@@ -83,9 +86,7 @@ Environment Variables:
83
86
  parser.add_argument(
84
87
  "--version", "-v", action="store_true", help="Show version and exit"
85
88
  )
86
- parser.add_argument(
87
- "--clear-key", action="store_true", help="Clear saved API key"
88
- )
89
+ parser.add_argument("--clear-key", action="store_true", help="Clear saved API key")
89
90
 
90
91
  args = parser.parse_args()
91
92
 
@@ -129,10 +130,12 @@ Environment Variables:
129
130
 
130
131
  def run_interactive(model: Optional[str] = None, api_key: Optional[str] = None):
131
132
  """Run interactive CLI mode."""
133
+ from . import __version__
134
+
132
135
  print("=" * 60)
133
136
  print("🌍 GeoMind - Geospatial AI Agent")
134
137
  print("=" * 60)
135
- print("Powered by OpenRouter | Sentinel-2 Imagery")
138
+ print(f"Version: {__version__} | Author: Harsh Shinde")
136
139
  print("Type 'quit' or 'exit' to end the session")
137
140
  print("Type 'reset' to start a new conversation")
138
141
  print("=" * 60)
@@ -52,4 +52,4 @@ GEOCODER_USER_AGENT = "geomind_agent_v0.1"
52
52
  # Get your free API key at: https://openrouter.ai/settings/keys
53
53
  OPENROUTER_API_KEY = os.getenv("OPENROUTER_API_KEY", "")
54
54
  OPENROUTER_API_URL = os.getenv("OPENROUTER_API_URL", "https://openrouter.ai/api/v1")
55
- OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "google/gemini-2.0-flash-exp:free")
55
+ OPENROUTER_MODEL = os.getenv("OPENROUTER_MODEL", "xiaomi/mimo-v2-flash:free")
@@ -8,6 +8,12 @@ from typing import Optional, List, Tuple
8
8
  from pathlib import Path
9
9
  import numpy as np
10
10
 
11
+ # Use non-interactive backend BEFORE any other matplotlib imports
12
+ import matplotlib
13
+
14
+ matplotlib.use("Agg")
15
+ import matplotlib.pyplot as plt
16
+
11
17
  from ..config import (
12
18
  REFLECTANCE_SCALE,
13
19
  REFLECTANCE_OFFSET,
@@ -109,7 +115,6 @@ def create_rgb_composite(
109
115
  """
110
116
  try:
111
117
  import xarray as xr
112
- import matplotlib.pyplot as plt
113
118
  import zarr
114
119
 
115
120
  # Open the Zarr store
@@ -164,6 +169,7 @@ def create_rgb_composite(
164
169
  # Save
165
170
  plt.savefig(output_path, dpi=150, bbox_inches="tight", pad_inches=0.1)
166
171
  plt.close(fig)
172
+ plt.close('all') # Ensure all figures are closed
167
173
 
168
174
  return {
169
175
  "success": True,
@@ -200,7 +206,6 @@ def calculate_ndvi(
200
206
  """
201
207
  try:
202
208
  import zarr
203
- import matplotlib.pyplot as plt
204
209
  from matplotlib.colors import LinearSegmentedColormap
205
210
 
206
211
  # Open the Zarr store
@@ -261,6 +266,7 @@ def calculate_ndvi(
261
266
  # Save
262
267
  plt.savefig(output_path, dpi=150, bbox_inches="tight", pad_inches=0.1)
263
268
  plt.close(fig)
269
+ plt.close('all') # Ensure all figures are closed
264
270
 
265
271
  return {
266
272
  "success": True,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: geomind-ai
3
- Version: 1.0.5
3
+ Version: 1.0.7
4
4
  Summary: AI agent for geospatial analysis with Sentinel-2 satellite imagery
5
5
  Author: Harsh Shinde
6
6
  License-Expression: MIT
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "geomind-ai"
7
- version = "1.0.5"
7
+ version = "1.0.7"
8
8
  description = "AI agent for geospatial analysis with Sentinel-2 satellite imagery"
9
9
  readme = "README.md"
10
10
  authors = [
File without changes
File without changes
File without changes
File without changes
File without changes