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:
@@ -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
|
||||
|
||||
@@ -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 ───────────────────────────────────────────────────────
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user