Skip to content

Instantly share code, notes, and snippets.

View zonca's full-sized avatar

Andrea Zonca zonca

View GitHub Profile
@zonca
zonca / gnilc_dust_fix281_tt_diagnostic_executed.ipynb
Created November 4, 2026 09:42
GNILC dust templates (PySM issue #281 fix): region-by-region spectral diagnostic of the small-scale changes. Outside GAL080 TT decreases 6-11% while EE/BB grow 20-30% at ell>=200; the full-sky TT increase at high ell comes from the low-latitude band (single global small-scale amplitude). Includes the check that the Galactic plane core is bit-ide…
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zonca
zonca / gnilc_dust_template_comparison_fix281_executed.ipynb
Last active November 4, 2026 23:18
GNILC dust templates: impact of the zero-level offset fix (PySM issue #281) - executed comparison notebook
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zonca
zonca / small_scale_dust_pysm3_generate_templates_nside2048_executed.ipynb
Created November 4, 2026 09:42
GNILC dust template generation at NSIDE 2048 with the CIB monopole fix (PySM issue #281), from the regenerated artifacts, same random seed as the 2023 release. Executed on Popeye (SDSC) via Slurm.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zonca
zonca / small_scale_dust_pysm3_generate_artifacts_executed.ipynb
Created November 4, 2026 09:42
GNILC dust preprocessing with the CIB monopole fix (PySM issue #281): regeneration of all artifacts, subtracting the measured 0.1254 MJy/sr zero-level offset from intensity outside GAL080; small-scale spectra and modulation maps recomputed from the corrected logpoltens. Executed on Popeye (SDSC) via Slurm.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zonca
zonca / README.md
Last active November 4, 2026 04:28
Configuration files for the tutorial verification loop: OpenCode subagents (executor and improver), Chrome CDP launcher, browser-use accessibility helpers, round report schema

Tutorial verification loop: configuration files

Companion files for the blog post "Keeping interactive tutorials up to date with an orchestrator and AI subagents".

File What it is
readme-tester.md Small version: OpenCode subagent that follows a README literally, cannot edit
readme-fixer.md Small version: OpenCode subagent that fixes the failing lines, cannot run commands
tutorial-executor.md OpenCode subagent that walks the tutorial literally in the live console
@zonca
zonca / pysm-catalog-native-car-equatorial.ipynb
Created October 8, 2026 17:24
PySM: paint the radio point source catalog natively in CAR, in Equatorial (validated, executed on Perlmutter)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zonca
zonca / compare_websky_agora_radio.ipynb
Last active October 6, 2026 17:18
Agora extragalactic radio simulations: data products, conversion to PySM PointSourceCatalog format, validation vs official SPT-3G maps, comparison with WebSky (pysm issue #250)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@zonca
zonca / agent-state
Created September 13, 2026 23:51
agent-state: set hterm terminal background to reflect AI agent status (ChromeOS Overview)
#!/usr/bin/env bash
# agent-state: set the hterm terminal background based on an AI agent's status,
# so ChromeOS Overview shows at a glance which terminals are working vs done.
#
# Usage:
# agent-state <working|done|waiting|error|reset> [agent-name]
#
# States:
# working -> yellow background (traffic light: agent is working)
# done -> green background (agent finished)
@zonca
zonca / README.md
Created August 7, 2026 18:16
numpy vs numba performance benchmark

numpy vs numba performance benchmark

A simple benchmark comparing numpy (vectorized) and numba (JIT-compiled parallel loop) for a sum-of-squares computation over a large array.

Performance

On a representative machine the JIT-compiled numba version is roughly 12–15x faster than the vectorized numpy version:

numba vs numpy performance benchmark

A small benchmark that compares the wall-clock performance of equivalent numeric operations written with plain numpy and with numba @njit-compiled code.

What it measures

On a large 1-D float array (10M elements) it compares five operations:

| Operation | Description |