fix(assets): remove unused imports in sol pipeline

Ruff pre-push lint caught 17 unused imports across 7 files.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-07 22:25:28 +02:00
co-authored by Claude Opus 4.6
parent f7f2cac7e8
commit d364e1907d
7 changed files with 6 additions and 14 deletions
-1
View File
@@ -6,7 +6,6 @@ Supports resume for large files and optional SHA-256 verification.
"""
import hashlib
import os
import sys
import urllib.request
from pathlib import Path
+2 -6
View File
@@ -12,20 +12,16 @@ use col 0 = 180°W natively. Natural Earth uses -180 to 180 longitude.
"""
import json
import math
import os
import struct
import zipfile
import numpy as np
from pathlib import Path
from scipy.ndimage import gaussian_filter
from sol_data.download import ensure_cached
from sol_data.shared import (
GRID_W, GRID_H,
load_tiff_as_array, load_raw_binary, load_image_as_elevation,
load_tiff_as_array,
resample_to_grid, normalize_01, compute_sea_level,
greenwich_to_dateline, compute_hillshade, assemble_terrain,
compute_hillshade, assemble_terrain,
)
# ─── Data source URLs ───────────────────────────────────────────────────────
+1 -1
View File
@@ -19,7 +19,7 @@ from pathlib import Path
from sol_data.download import ensure_cached
from sol_data.shared import (
GRID_W, GRID_H,
load_raw_binary, load_tiff_as_array, load_image_as_elevation,
load_raw_binary,
resample_to_grid, normalize_01,
compute_hillshade, assemble_terrain,
temperature_grid_analytical,
+2 -3
View File
@@ -16,14 +16,13 @@ Mars properties:
"""
import numpy as np
from pathlib import Path
from sol_data.download import ensure_cached
from sol_data.shared import (
GRID_W, GRID_H,
load_raw_binary, resample_to_grid, normalize_01, compute_sea_level,
load_raw_binary, resample_to_grid, normalize_01,
compute_hillshade, assemble_terrain,
temperature_grid_analytical, temperature_equilibrium_K,
temperature_grid_analytical,
)
# MOLA MEGDR — 4 pixels per degree (1440 × 720), big-endian int16
-1
View File
@@ -10,7 +10,6 @@ All loaders produce arrays compatible with the planet_simulation terrain dict:
"""
import math
import struct
import numpy as np
from scipy.ndimage import zoom
from PIL import Image
-1
View File
@@ -26,7 +26,6 @@ from sol_data.shared import (
GRID_W, GRID_H,
load_image_as_elevation, resample_to_grid, normalize_01,
compute_hillshade, assemble_terrain,
temperature_grid_analytical,
)
# Cassini ISS global mosaic
+1 -1
View File
@@ -32,7 +32,7 @@ if _venv_python.exists() and Path(sys.executable).resolve() != _venv_python.reso
import numpy as np
from planet_simulation import simulate, compute_biome, compute_hillshade
from planet_simulation import simulate
from render_heightmap import render_heightmap
from generate import _build_markers