MCPcopy Create free account

hub / github.com/cannoneyed/isometric-nyc / functions

Functions1,260 in github.com/cannoneyed/isometric-nyc

↓ 2 callersFunctionfindNearestStarredIndex
()
src/isometric_nyc/generation/static/viewer.js:1937
↓ 2 callersFunctionfind_all_valid_2x2_positions
Find all valid top-left positions for 2x2 tiles.
src/isometric_nyc/generation/make_rectangle_plan.py:215
↓ 2 callersMethodfind_optimal_position
Find the optimal (x, y) position for the infill in the template. The position maximizes context inclusion while avoiding seams. Returns
src/isometric_nyc/generation/generate_template_test.py:131
↓ 2 callersFunctionformat_size
Format bytes as human-readable string.
src/isometric_nyc/download_generation.py:27
↓ 2 callersFunctionformat_time
Format seconds into a human-readable time string.
src/isometric_nyc/generation/generate_water_masks.py:183
↓ 2 callersFunctionformat_time
Format seconds into a human-readable time string.
src/isometric_nyc/generation/detect_water_tiles.py:118
↓ 2 callersMethodfrom_dict
Create from JSON dict.
src/isometric_nyc/generation/automatic_generation.py:143
↓ 2 callersMethodfrom_string
Parse a string like '(x,y)' or 'x,y' into a Point.
src/isometric_nyc/generation/make_strip_plan.py:76
↓ 2 callersFunctiongetSelectedModelId
()
src/isometric_nyc/generation/static/viewer.js:216
↓ 2 callersFunctionget_2x2_block_positions
Get all 2x2 blocks that contain the point p. A point can be in up to 4 different 2x2 blocks: - As top-left - As top-right - As bottom-left
src/isometric_nyc/generation/generate_water_masks.py:67
↓ 2 callersFunctionget_2x2_neighbors
Get all 8 exterior neighbors of a 2x2 tile. For a 2x2 at (x,y), (x+1,y), (x,y+1), (x+1,y+1): - Top: (x, y-1), (x+1, y-1) - Bottom: (x, y+2),
src/isometric_nyc/generation/make_rectangle_plan.py:143
↓ 2 callersMethodget_all_generated
Get all generated quadrant positions.
src/isometric_nyc/generation/automatic_generation.py:272
↓ 2 callersFunctionget_all_processing_items
Get all items currently being processed (one per model in parallel mode).
src/isometric_nyc/generation/queue_db.py:409
↓ 2 callersFunctionget_cache_key
Generate a cache key for a satellite tile.
src/isometric_nyc/whitebox.py:87
↓ 2 callersFunctionget_columns
(conn, table_name)
src/isometric_nyc/citydb/inspect_columns.py:7
↓ 2 callersFunctionget_context_from_grid
Determine the infill context from a quadrant grid. Checks for generated quadrants adjacent to the selection. Args: grid: The quadrant gri
src/isometric_nyc/generation/generate_template_test.py:317
↓ 2 callersFunctionget_db_connection
Get a connection to the generations database.
src/layers/water_shader/app/server.py:105
↓ 2 callersMethodget_descriptions
(self)
src/notebooks/tile.py:96
↓ 2 callersMethodget_descriptions
(self)
src/notebooks/few-shot-checks.py:95
↓ 2 callersMethodget_descriptions
(self)
src/isometric_nyc/tile_generation/shared.py:37
↓ 2 callersFunctionget_file_size
Get file size from Content-Length header.
src/isometric_nyc/download_generation.py:39
↓ 2 callersMethodget_generated_bounds
Get the bounding box of all generated quadrants.
src/isometric_nyc/generation/automatic_generation.py:280
↓ 2 callersFunctionget_generated_quadrants
Get all quadrants that have been generated (have generation data). Returns list of (quadrant_x, quadrant_y, water_status) tuples. water_status
src/isometric_nyc/generation/debug_map.py:41
↓ 2 callersFunctionget_generation_config
Get the generation config from the metadata table.
src/isometric_nyc/generation/debug_map.py:31
↓ 2 callersFunctionget_index_schemas
Get all CREATE INDEX statements for a table.
src/isometric_nyc/create_tiny_nyc.py:43
↓ 2 callersFunctionget_pending_quadrants
Get all unique quadrants from pending queue items. Returns list of (quadrant_x, quadrant_y) tuples.
src/isometric_nyc/generation/debug_map.py:75
↓ 2 callersFunctionget_quadrant_data
Get either render or generation bytes for a quadrant.
src/isometric_nyc/generation/view_generations.py:120
↓ 2 callersFunctionget_quadrant_render
Get the render bytes for a quadrant.
src/isometric_nyc/generation/app.py:259
↓ 2 callersFunctionget_render
(x: int, y: int)
src/isometric_nyc/generation/generate_template_test.py:1388
↓ 2 callersFunctionget_tile_quadrants
Get all 4 quadrant coordinates for a tile anchored at (anchor_x, anchor_y). Returns: List of (x, y) tuples for TL, TR, BL, BR quadrants
src/isometric_nyc/generation/generate_tile_omni.py:89
↓ 2 callersFunctionget_tile_quadrants
Get all 4 quadrant coordinates for a tile anchored at (anchor_x, anchor_y). Returns: List of (x, y) tuples for TL, TR, BL, BR quadrants
src/isometric_nyc/generation/generate_tile_nano_banana.py:228
↓ 2 callersFunctionget_water_edge_quadrants_without_masks
Get all WATER_EDGE quadrants that don't have water mask data yet. Returns: List of (x, y) coordinates for quadrants needing water masks.
src/isometric_nyc/generation/generate_water_masks.py:107
↓ 2 callersFunctionget_web_renderer
Get the global web renderer instance, creating it if necessary. This provides a singleton instance of the WebRenderer that can be shared acros
src/isometric_nyc/generation/web_renderer.py:343
↓ 2 callersFunctionimport_tile
Import a tile PNG into the database as quadrants. Args: db_path: Path to the quadrants.db file. tl: (x, y) coordinates of the top-le
src/isometric_nyc/generation/export_import_generation_tile.py:276
↓ 2 callersMethodis_full_tile
Check if this region is exactly a full tile (1024x1024).
src/isometric_nyc/generation/infill_template.py:117
↓ 2 callersFunctionis_valid_assignment
Check if adding new_type to current_types satisfies constraints.
src/isometric_nyc/synthetic_data/create_omni_dataset.py:375
↓ 2 callersFunctionloadTexture
(url: string, isImage: boolean)
src/app/src/components/WaterShaderOverlay.tsx:117
↓ 2 callersFunctionmark_item_complete
Mark a queue item as complete.
src/isometric_nyc/generation/queue_db.py:305
↓ 2 callersFunctionmark_item_error
Mark a queue item as errored.
src/isometric_nyc/generation/queue_db.py:321
↓ 2 callersFunctionmin_zoom_for_grid
Calculate minimum PMTiles zoom level to fit a grid of given size.
src/isometric_nyc/generation/export_pmtiles.py:879
↓ 2 callersFunctionparse_coordinate
Parse a coordinate string like '10,20' or '10, 20' into a Point.
src/isometric_nyc/generation/automatic_generation.py:1186
↓ 2 callersFunctionparse_coordinate
Parse a coordinate string like '(x,y)' or 'x,y' into a Point.
src/isometric_nyc/generation/make_strip_plan.py:807
↓ 2 callersFunctionparse_coords
Parse a coordinate string like '0,0' or '(0,0)' into (x, y) tuple.
src/isometric_nyc/create_tiny_nyc.py:23
↓ 2 callersFunctionparse_filename
Parse a filename to extract coordinates and hash. Args: filename: Filename like "0012_0045_a1b2c3d4.png" Returns: Tuple of (x, y, has
src/isometric_nyc/oxen_sync/utils.py:41
↓ 2 callersFunctionparse_quadrant_list
Parse a comma-separated list of quadrant tuples. Args: s: String like "(0,1),(0,2)" or "(0,1), (0,2)" Returns: List of (x, y) coo
src/isometric_nyc/generation/generate_omni.py:92
↓ 2 callersFunctionpostprocess_image
Apply pixelation and color quantization to an image. Args: img: Source image (will be converted to RGB). palette_img: Palette image
src/isometric_nyc/generation/export_tiles_for_app.py:335
↓ 2 callersFunctionprocess_source_dir
(source_dir)
src/isometric_nyc/synthetic_data/create_v04.py:25
↓ 2 callersFunctionprocess_tile_unfake
Apply unfake-style pixel art postprocessing to a tile. Args: img: Input PIL Image pixel_size: Native pixel size (default: 2)
src/isometric_nyc/generation/pixel_art_postprocess.py:27
↓ 2 callersFunctionrefreshTileImage
(qx, qy)
src/isometric_nyc/generation/static/viewer.js:2855
↓ 2 callersFunctionrender_quadrant
Render a quadrant and save to database. This renders the tile containing the quadrant and saves all 4 quadrants. Args: conn: Database c
src/isometric_nyc/generation/generate_omni.py:561
↓ 2 callersFunctionrender_tile
Render a 3D tile of NYC buildings. Args: lat, lon: Center coordinates size_meters: Size of the area to render orientation_deg: Rotat
src/isometric_nyc/whitebox.py:379
↓ 2 callersFunctionrender_url_to_bytes
Render a URL to PNG bytes using Playwright. This is a shared utility for rendering web pages to images with consistent Chromium configuration
src/isometric_nyc/generation/shared.py:128
↓ 2 callersFunctionrun_generation
Run the full generation pipeline for selected quadrants. This is a wrapper around run_generation_for_quadrants that ensures the web server is
src/isometric_nyc/generation/view_generations.py:212
↓ 2 callersFunctionrun_nano_banana_generation
Run the full nano banana generation pipeline for selected quadrants. This is the main entry point for generation. It: 1. Validates the quadran
src/isometric_nyc/generation/generate_tile_nano_banana.py:846
↓ 2 callersFunctionsample_colors_from_database
Sample colors from quadrants in the database.
src/isometric_nyc/generation/export_dzi.py:293
↓ 2 callersFunctiontryFetch
(url: string)
src/app/src/App.tsx:194
↓ 2 callersFunctionupload_to_gcs
Upload a file to Google Cloud Storage and return its public URL. Args: local_path: Path to the local file to upload bucket_name: Name of
src/isometric_nyc/generation/shared.py:789
↓ 2 callersMethodvisualize
Create an ASCII visualization of the grid. Legend: G = Generated . = Empty S = Selected (highlighted)
src/isometric_nyc/generation/automatic_generation.py:313
↓ 2 callersFunctionwait_for_server
Wait for the server to be ready by making HTTP requests. Args: port: Port to check timeout: Maximum time to wait in seconds interval
src/isometric_nyc/generation/shared.py:42
↓ 1 callersMethod_apply_infill_mask
Apply a mask to ensure only the infill region has render pixels. For quadrants that partially overlap the infill region, we need to comp
src/isometric_nyc/generation/infill_template.py:859
↓ 1 callersMethod_check_neighbor_context
Check that all generated neighbors can be included in template. Uses the generic InfillPositioner to validate that a valid position exists
src/isometric_nyc/generation/generate_template_test.py:498
↓ 1 callersFunction_create_horizontal_depth_3_plus_plan
Create depth-3+ plan for horizontal strip.
src/isometric_nyc/generation/make_strip_plan.py:447
↓ 1 callersFunction_create_vertical_depth_3_plus_plan
Create depth-3+ plan for vertical strip.
src/isometric_nyc/generation/make_strip_plan.py:613
↓ 1 callersMethod_draw_border
Draw a red border around the infill region.
src/isometric_nyc/generation/infill_template.py:873
↓ 1 callersMethod_ensure_web_server_running
Ensure the web server is still running, restart if needed.
src/isometric_nyc/generation/web_renderer.py:159
↓ 1 callersFunction_generate_3_col_chunk_vertical
Generate steps for a 3-column vertical chunk. x_cols should be ordered from closest to farthest from the generation edge. The 2x2 tiles go in
src/isometric_nyc/generation/make_strip_plan.py:671
↓ 1 callersFunction_generate_3_row_chunk_horizontal
Generate steps for a 3-row horizontal chunk. y_rows should be ordered from closest to farthest from the generation edge. The 2x2 tiles go in t
src/isometric_nyc/generation/make_strip_plan.py:506
↓ 1 callersMethod_inference
Internal helper to avoid code duplication
inference/server.py:146
↓ 1 callersMethod_is_contiguous
Check if a set of positions forms a contiguous region.
src/isometric_nyc/generation/generate_template_test.py:477
↓ 1 callersMethod_render_tile
Render a tile and return all 4 quadrants as PNG bytes. Returns a dict mapping (dx, dy) offset to PNG bytes.
src/isometric_nyc/generation/web_renderer.py:205
↓ 1 callersFunction_test_basic
Run basic tests.
src/isometric_nyc/generation/infill_template.py:1072
↓ 1 callersMethod_try_alternative_placements
Try alternative placements that avoid missing context quadrants. When the optimal placement would include non-generated context quadrants,
src/isometric_nyc/generation/infill_template.py:387
↓ 1 callersMethod_try_seam_tolerant_placement
Try to find a placement that avoids missing context quadrants, even if it might create seams with generated neighbors. This is a last re
src/isometric_nyc/generation/infill_template.py:462
↓ 1 callersMethod_update_status
Update status via callback if available.
src/isometric_nyc/generation/shared.py:871
↓ 1 callersMethod_validate_placement_seams
Validate that a placement doesn't create seams. A seam would occur if the infill region touches the template edge AND there are generate
src/isometric_nyc/generation/infill_template.py:600
↓ 1 callersFunctionaddUI
()
src/web_render/main.js:324
↓ 1 callersMethodall_points
Return all points within the bounding box.
src/isometric_nyc/generation/automatic_generation.py:113
↓ 1 callersMethodall_points
Return all points within the strip bounds.
src/isometric_nyc/generation/make_strip_plan.py:117
↓ 1 callersFunctionanimate
()
src/web_render/main.js:424
↓ 1 callersFunctionanimate
()
src/web_render/example.js:314
↓ 1 callersFunctionapply_bounds_mask
Apply a bounds mask to an image, blacking out pixels outside the bounds. Args: img: Input image (RGB) mask: Mask image (L mode, 255=insi
src/isometric_nyc/generation/export_pmtiles.py:412
↓ 1 callersFunctionapply_bounds_mask
Apply a bounds mask to an image.
src/isometric_nyc/generation/export_dzi.py:280
↓ 1 callersFunctionapply_perspective_correction
Apply perspective correction to satellite imagery. Args: image_array: numpy array of the image transform_params: dict with scale_x, scal
src/isometric_nyc/whitebox.py:305
↓ 1 callersFunctionassemble_tiles_pyvips
Assemble tiles into a single image using pyvips. This uses pyvips's arrayjoin to efficiently combine tiles without loading all images in
src/isometric_nyc/generation/test_dzi_export.py:98
↓ 1 callersFunctionassemble_tiles_to_pyvips
Assemble all tiles into a single pyvips image. Uses pyvips.arrayjoin for efficient memory handling. Fast path when no postprocessing: lo
src/isometric_nyc/generation/export_dzi.py:498
↓ 1 callersFunctionassign_rectangle_types
Assign rectangle types to achieve ~20% distribution for each type. Args: num_images: Number of source images. variants_per_image: Nu
src/isometric_nyc/synthetic_data/create_inpainting_examples.py:398
↓ 1 callersFunctionbuild_app
Build the static web app using bun/vite.
src/app/deploy.py:59
↓ 1 callersFunctionbuild_template
Build a template image from the specified quadrants. Builds a 1024x1024 template with all quadrants from the source layer, and a red border ar
inference/test_server.py:78
↓ 1 callersFunctionbuild_unified_palette
Build a unified palette image from sampled colors. Creates a small image with the quantized palette that can be used as a reference for applyi
src/isometric_nyc/postprocess_tiles.py:87
↓ 1 callersFunctionbuild_unified_palette
Build a unified palette image from sampled colors. Creates a small image with the quantized palette that can be used as a reference for applyi
src/isometric_nyc/generation/export_tiles_for_app.py:288
↓ 1 callersFunctionbuild_unified_palette
Build a unified palette image from sampled colors.
src/isometric_nyc/generation/export_pmtiles.py:498
↓ 1 callersFunctioncalculateMaxZoomFor1to1
(totalWidth: number)
src/app/src/App.tsx:82
↓ 1 callersFunctioncalculate_bounds_center
Calculate the lat/lng center point of the bounding box. Args: config: Generation config dictionary top_left: (x, y) quadrant coordin
src/isometric_nyc/generation/visualize_bounds.py:142
↓ 1 callersFunctioncalculate_context_quadrants
Calculate context quadrants lazily at execution time. This determines which adjacent quadrants have existing generations that can provide cont
src/isometric_nyc/generation/generate_tile_nano_banana.py:107
↓ 1 callersFunctioncalculate_context_quadrants
Calculate context quadrants lazily at execution time. This determines which adjacent quadrants have existing generations that can provide cont
src/isometric_nyc/generation/app.py:522
↓ 1 callersFunctioncalculate_distance_meters
Calculate approximate distance between two points in meters using Haversine formula.
src/isometric_nyc/synthetic_data/verify_coordinates.py:54
↓ 1 callersFunctioncalculate_offset
Calculate the new lat/lon center after shifting the view by shift_x_px and shift_y_px. Logic derived from whitebox.py camera setup: - Isometri
src/isometric_nyc/plan_tiles.py:7
↓ 1 callersFunctioncalculate_padded_dimensions
Calculate padded grid dimensions that are multiples of 2^max_zoom_level. This ensures the grid divides evenly at all zoom levels. Args:
src/isometric_nyc/generation/export_tiles_for_app.py:82
↓ 1 callersFunctioncalculate_padded_dimensions
Calculate padded grid dimensions that are multiples of 2^max_zoom_level.
src/isometric_nyc/generation/export_pmtiles.py:110
↓ 1 callersFunctioncalculate_quadrant_anchors
Calculate the anchor coordinates (bottom-right corner) for all 4 quadrants of a tile. The tile center is at (tile_lat, tile_lon). Each quadrant'
src/isometric_nyc/generation/seed_tiles.py:83
← previousnext →201–300 of 1,260, ranked by callers