MCPcopy Create free account

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

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

↓ 1 callersFunctionmain
()
src/isometric_nyc/synthetic_data/create_inline_examples.py:136
↓ 1 callersFunctionmain
()
src/isometric_nyc/synthetic_data/create_infill_examples.py:78
↓ 1 callersFunctionmain
()
src/isometric_nyc/synthetic_data/csv_editor_app.py:365
↓ 1 callersFunctionmain
()
src/isometric_nyc/synthetic_data/create_omni_dataset.py:731
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_006.py:79
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_008.py:79
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_007.py:83
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_004.py:80
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_002.py:88
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_005.py:88
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_011.py:81
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generation_checker.py:101
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_009.py:86
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_003.py:84
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_001.py:82
↓ 1 callersFunctionmain
()
src/isometric_nyc/tile_generation/generate_tile_010.py:77
↓ 1 callersFunctionmark_item_complete
Mark an item as complete.
src/isometric_nyc/generation/generate_full_map_layer.py:184
↓ 1 callersFunctionmark_item_error
Mark an item as having an error.
src/isometric_nyc/generation/generate_full_map_layer.py:198
↓ 1 callersFunctionmark_item_in_progress
Mark an item as in progress.
src/isometric_nyc/generation/generate_full_map_layer.py:168
↓ 1 callersFunctionmark_item_processing
Mark a queue item as processing.
src/isometric_nyc/generation/queue_db.py:291
↓ 1 callersFunctionmerge_adjacent_rendered_boxes
Merge adjacent rendered quadrants into larger bounding boxes.
src/isometric_nyc/generate_tile_oxen_infill.py:65
↓ 1 callersFunctionmerge_adjacent_rendered_boxes
Merge adjacent rendered quadrants into larger bounding boxes. When two adjacent quadrants (forming a half) are both rendered, they are m
src/isometric_nyc/synthetic_data/create_infill_dataset.py:77
↓ 1 callersMethodneighbors
Get the 4-connected neighbors of this position.
src/isometric_nyc/generation/generate_template_test.py:57
↓ 1 callersFunctiononWindowResize
()
src/web_render/example.js:190
↓ 1 callersFunctionparse_export_filename
Parse an export filename to extract quadrant coordinates. Args: filename: Filename like "export_tl_-1_77_br_0_78.png" Returns: Tu
src/isometric_nyc/generation/get_renders_for_exports.py:42
↓ 1 callersFunctionparse_generation_filename
Parse a generation filename in the format <xxx>_<yyy>_<hash>.png. Args: filename: The filename to parse (e.g., "123_456_abc123.png") Retu
src/isometric_nyc/oxen_sync/import_from_oxen.py:216
↓ 1 callersFunctionparse_quadrant_list
Parse a quadrant list string into a list of (x, y) tuples. Args: quadrant_str: String in format "(x,y),(x,y),..." or "(x,y)" Returns:
src/isometric_nyc/generation/generate_template.py:60
↓ 1 callersFunctionparse_quadrants
Parse quadrant string like '(0,0),(1,0)' into list of tuples.
inference/test_server.py:38
↓ 1 callersFunctionparse_reference_coords
Parse a reference coordinate string like "(0,1)" or "0,1" into a tuple. Args: ref_str: String in format "(x,y)" or "x,y" Returns: Tup
src/isometric_nyc/generation/generate_tile_nano_banana.py:302
↓ 1 callersFunctionparse_target_position
Parse a target position string into (dx, dy) offset within the tile. Args: position: One of "tl", "tr", "bl", "br" Returns: Tuple of
src/isometric_nyc/generation/generate_tile_omni.py:45
↓ 1 callersFunctionparse_target_position
Parse a target position string into (dx, dy) offset within the tile. Args: position: One of "tl", "tr", "bl", "br" Returns: Tuple of
src/isometric_nyc/generation/generate_tile_nano_banana.py:184
↓ 1 callersFunctionpixelate_and_quantize
input_path: Path to the source image. output_path: Where to save the result. pixel_scale: How 'chunky' the pixels should be. Higher = blockier.
src/isometric_nyc/pixelate.py:6
↓ 1 callersFunctionpixelate_and_quantize_with_palette
Apply pixelation and quantization to a single tile using a shared palette. Args: input_path: Path to source tile output_path: Path t
src/isometric_nyc/postprocess_tiles.py:137
↓ 1 callersFunctionplace_1x1_tiles
Fill remaining gaps with 1x1 tiles. A 1x1 tile can only be placed if 3 of 4 quadrants in at least one 2x2 block containing it are already gene
src/isometric_nyc/generation/make_rectangle_plan.py:535
↓ 1 callersFunctionplace_2x1_tiles
Place 2x1 and 1x2 tiles where possible. These tiles bridge gaps between 2x2 tiles and the generation edge.
src/isometric_nyc/generation/make_rectangle_plan.py:420
↓ 1 callersFunctionplace_2x2_tiles
Place as many 2x2 tiles as possible. Returns the generation steps and the set of scheduled quadrants. Strategy: 1. First pass: Place 2x2 ti
src/isometric_nyc/generation/make_rectangle_plan.py:232
↓ 1 callersFunctionpng_bytes_to_image
Convert PNG bytes to a PIL Image.
src/layers/water_shader/app/server.py:39
↓ 1 callersFunctionpng_bytes_to_image
Convert PNG bytes to a PIL Image.
src/isometric_nyc/generation/export_import_generation_tile.py:73
↓ 1 callersFunctionpng_bytes_to_image
Convert PNG bytes to a PIL Image.
src/isometric_nyc/generation/export_starred_from_db.py:113
↓ 1 callersFunctionpng_bytes_to_image
Convert PNG bytes to a PIL Image.
src/isometric_nyc/generation/export_tile.py:61
↓ 1 callersFunctionpopulate_water_masks
Analyze all tiles and populate water masks for ALL_WATER and ALL_LAND tiles. Args: generation_dir: Path to the generation directory dry_
src/isometric_nyc/generation/populate_water_masks.py:192
↓ 1 callersFunctionpositionCamera
()
src/web_render/main.js:205
↓ 1 callersFunctionpostprocess_generation
(tile_dir: str, reference_image_name: Path)
src/isometric_nyc/postprocess_generation.py:38
↓ 1 callersFunctionpostprocess_image
Apply pixelation and color quantization to an image.
src/isometric_nyc/generation/export_dzi.py:382
↓ 1 callersFunctionprint_progress
Print a progress bar with stats.
src/isometric_nyc/generation/populate_water_masks.py:159
↓ 1 callersFunctionprint_progress
Print a progress bar with stats.
src/isometric_nyc/generation/detect_water_tiles.py:132
↓ 1 callersFunctionprocess_all_tiles
Process all tiles in parallel using the shared palette. Args: tiles_dir: Directory containing source tiles output_dir: Directory to
src/isometric_nyc/postprocess_tiles.py:225
↓ 1 callersFunctionprocess_exports
Process all export files and generate corresponding renders. Args: exports_dir: Directory containing export PNG files generation_dir
src/isometric_nyc/generation/get_renders_for_exports.py:157
↓ 1 callersFunctionprocess_item
Process a single generation item. Returns (success, message) tuple.
src/isometric_nyc/generation/generate_full_map_layer.py:359
↓ 1 callersFunctionprocess_quadrant
Process a single quadrant, replacing the target color. Args: conn: Database connection config: Generation config x: Quadrant x
src/isometric_nyc/generation/replace_color.py:133
↓ 1 callersFunctionprocess_quadrants_json
Process a JSON file of quadrant entries. The script will: - Process entries with status "pending" or "error" (retries errors) - Update statu
src/isometric_nyc/generation/generate_tiles_omni.py:156
↓ 1 callersFunctionprocess_quadrants_list
Process a comma-separated list of quadrant tuples. Args: generation_dir: Path to the generation directory quadrants_str: String like
src/isometric_nyc/generation/generate_tiles_omni.py:121
↓ 1 callersFunctionprocess_queue_item
Process a single queue item (generate or render).
src/isometric_nyc/generation/view_generations.py:242
↓ 1 callersFunctionprocess_queue_item_from_db
Process a single queue item from the database.
src/isometric_nyc/generation/app.py:764
↓ 1 callersFunctionprocess_single_tile
(coords: tuple[int, int])
src/isometric_nyc/generation/export_dzi.py:549
↓ 1 callersFunctionprocess_tile
Process a single tile with optional postprocessing and bounds clipping. Args: raw_data: Raw image bytes from database src_x: Quad
src/isometric_nyc/generation/export_dzi.py:420
↓ 1 callersFunctionprocess_web_views
Process multiple web view exports in a single browser session. Args: tasks: List of (output_dir, view_config) tuples port: Port where we
src/isometric_nyc/export_views.py:100
↓ 1 callersFunctionquadrantToPixel
(qx, qy)
src/isometric_nyc/generation/static/viewer.js:3152
↓ 1 callersFunctionquadrant_has_data
Check if a quadrant already has generation data.
src/isometric_nyc/generation/fill_water.py:57
↓ 1 callersFunctionreferenceSelected
()
src/isometric_nyc/generation/static/viewer.js:1698
↓ 1 callersFunctionreinstantiateTiles
()
src/web_render/example.js:50
↓ 1 callersFunctionrender_bounds
Render the bounding box visualization using the web renderer. Args: view_params: Dictionary with view parameters (lat, lon, width, height,
src/isometric_nyc/generation/visualize_bounds.py:271
↓ 1 callersFunctionrender_quadrant
Render a single quadrant using the web server.
src/isometric_nyc/generation/automatic_generation.py:557
↓ 1 callersFunctionrender_quadrant
Render a quadrant and save to database. Returns the PNG bytes of the rendered quadrant.
src/isometric_nyc/generation/generate_template.py:149
↓ 1 callersMethodrender_quadrant
Synchronously render a quadrant and wait for the result. This is a blocking call that waits for the render to complete. Args: qua
src/isometric_nyc/generation/web_renderer.py:262
↓ 1 callersFunctionrender_quadrant_tile
Render a tile with quadrant (x, y) in the top-left position. The rendered tile covers quadrants: (x, y), (x+1, y), (x, y+1), (x+1, y+1). After
src/isometric_nyc/generation/render_tile.py:34
↓ 1 callersFunctionrender_quadrant_with_renderer
Render a quadrant using the global web renderer. Returns the PNG bytes of the rendered quadrant.
src/isometric_nyc/generation/app.py:713
↓ 1 callersFunctionrender_tile
Render a single tile using Playwright.
src/isometric_nyc/generation/check_tiles.py:31
↓ 1 callersFunctionrender_tile_region
Render a tile region spanning from (tl_x, tl_y) to (br_x, br_y). For a standard 2x2 tile where br = tl + (1, 1), this renders a single tile. F
src/isometric_nyc/generation/get_renders_for_exports.py:64
↓ 1 callersFunctionresetWaterFixState
()
src/isometric_nyc/generation/static/viewer.js:773
↓ 1 callersFunctionreset_all_processing_items
Reset ALL items in 'processing' state back to 'pending'. This should be called on server startup to ensure any items that were interrupted mid
src/isometric_nyc/generation/queue_db.py:547
↓ 1 callersFunctionreset_error_items
Reset all error items to pending. Returns count of reset items.
src/isometric_nyc/generation/generate_full_map_layer.py:212
↓ 1 callersFunctionrestoreSavedQuadrants
()
src/isometric_nyc/generation/static/viewer.js:3058
↓ 1 callersFunctionrestoreSavedTool
()
src/isometric_nyc/generation/static/viewer.js:3024
↓ 1 callersFunctionrgbToHex
(r, g, b)
src/isometric_nyc/generation/static/viewer.js:797
↓ 1 callersFunctionrun_editor
Run the bounds editor web server. Args: generation_dir: Path to the generation directory existing_bounds_path: Optional path to existing
src/isometric_nyc/generation/create_bounds.py:932
↓ 1 callersFunctionrun_extraction_tests
Run quadrant extraction tests.
src/isometric_nyc/generation/generate_template_test.py:1470
↓ 1 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/app.py:643
↓ 1 callersFunctionrun_generation_step
Run a single generation step for the given quadrants. This uses the flexible TemplateBuilder approach that can handle 1, 2, or 4 quadrant sele
src/isometric_nyc/generation/automatic_generation.py:375
↓ 1 callersFunctionrun_nano_banana_generation_wrapper
Wrapper to call nano banana generation with references from DB.
src/isometric_nyc/generation/app.py:590
↓ 1 callersFunctionrun_template_creation_tests
Run template creation tests with synthetic images. Args: output_dir: If provided, save test images to this directory Returns: True if
src/isometric_nyc/generation/generate_template_test.py:1349
↓ 1 callersFunctionrun_validation_tests
Run validation tests and return True if all pass.
src/isometric_nyc/generation/generate_template_test.py:1240
↓ 1 callersFunctionrun_water_mask_generation
Run water mask generation for a single quadrant. Args: conn: Database connection config: Generation config quadrant: The quadrant to
src/isometric_nyc/generation/generate_water_masks.py:197
↓ 1 callersFunctionsample_colors_from_database
Sample colors from quadrants in the database to build a representative color set. Args: db_path: Path to the quadrants.db file. tl:
src/isometric_nyc/generation/export_tiles_for_app.py:208
↓ 1 callersFunctionsample_colors_from_database
Sample colors from quadrants in the database to build a representative color set.
src/isometric_nyc/generation/export_pmtiles.py:436
↓ 1 callersFunctionsample_colors_from_tiles
Sample colors from a subset of tiles to build a representative color set. Args: tile_paths: List of all tile paths sample_size: Numb
src/isometric_nyc/postprocess_tiles.py:44
↓ 1 callersFunctionsaveNegativePrompt
(negativePrompt)
src/isometric_nyc/generation/static/viewer.js:119
↓ 1 callersFunctionsavePrompt
(prompt)
src/isometric_nyc/generation/static/viewer.js:68
↓ 1 callersFunctionsaveSelectedModel
(modelId)
src/isometric_nyc/generation/static/viewer.js:12
↓ 1 callersFunctionsave_bounds
Save a GeoJSON bounds file. Args: geojson: GeoJSON dict to save name: Name for the bounds file (without extension) b
src/isometric_nyc/generation/bounds.py:43
↓ 1 callersFunctionsave_palette
Save the palette image to disk.
src/isometric_nyc/postprocess_tiles.py:125
↓ 1 callersFunctionsave_palette
Save the palette image to disk.
src/isometric_nyc/generation/export_tiles_for_app.py:387
↓ 1 callersFunctionsave_quadrant_dark_mode
Save dark mode (nighttime) bytes for a quadrant at position (x, y). Creates the quadrant if it doesn't exist. Returns True if successful.
src/isometric_nyc/generation/shared.py:440
↓ 1 callersFunctionsave_quadrant_data
Save generation or render bytes for a quadrant.
src/isometric_nyc/generation/export_import_generation_tile.py:187
↓ 1 callersFunctionsave_quadrant_generation
Save generation bytes for a quadrant.
src/isometric_nyc/generation/import_generation.py:79
↓ 1 callersFunctionsave_quadrant_water_mask
Save water mask bytes for a quadrant at position (x, y). Creates the quadrant if it doesn't exist. Sets water_type to WATER_EDGE since this is
src/isometric_nyc/generation/shared.py:414
↓ 1 callersFunctionsave_strip_plan
Save the strip plan to a JSON file.
src/isometric_nyc/generation/make_strip_plan.py:780
↓ 1 callersFunctionsave_tile_to_cache
Save a tile to the cache.
src/isometric_nyc/whitebox.py:108
↓ 1 callersFunctionseed_database
Seed the quadrant database for a generation. Reads the generation_config.json, calculates all tile and quadrant positions, and populates the S
src/isometric_nyc/generation/seed_tiles.py:283
↓ 1 callersMethodset_state
Set the state of a quadrant.
src/isometric_nyc/generation/automatic_generation.py:254
← previousnext →701–800 of 1,260, ranked by callers