#Python is for artists too @ #SescAvPaulista
(Oficina do Clubinho Gráfico aos domingos)

PIRATES
(Polarimetric Image Reconstruction AI for Tracing Evolved Structures)
uses machine learning to perform image reconstruction.
It uses MCFOST to generate models, then uses those models to build, train, iteratively fit, and evaluate PIRATES performance.
Optical interferometric image reconstruction is a challenging, ill-posed optimization problem which usually relies on heavy regularization for convergence. Conventional algorithms regularize in the pixel domain, without cognizance of spatial relationships or physical realism, with limited utility when this information is needed to reconstruct images. Here we present PIRATES (Polarimetric Image Reconstruction AI for Tracing Evolved Structures), the first image reconstruction algorithm for optical polarimetric interferometry. PIRATES has a dual structure optimized for parsimonious reconstruction of high fidelity polarized images and accurate reproduction of interferometric observables. The first stage, a convolutional neural network (CNN), learns a physically meaningful prior of self-consistent polarized scattering relationships from radiative transfer images. The second stage, an iterative fitting mechanism, uses the CNN as a prior for subsequent refinement of the images with respect to their polarized interferometric observables. Unlike the pixel-wise adjustments of traditional image reconstruction codes, PIRATES reconstructs images in a latent feature space, imparting a structurally derived implicit regularization.
https://github.com/LucindaLilley/PIRATES
https://ui.adsabs.harvard.edu/abs/2025arXiv250511950L/abstract
CREDITS:
Lilley, Lucinda ; Norris, Barnaby ; Tuthill, Peter ; Spalding, Eckhart ; Lucas, Miles ; Zhang, Manxuan ; Millar-Blanchaer, Maxwell ; Pinte, Christophe ; Bottom, Michael ; Guyon, Olivier ; Lozi, Julien ; Deo, Vincent ; Vievard, Sébastien ; Wong, Alison P. ; Ahn, Kyohoon ; Ashcraft, Jaren
#space #code #python #science #tech

For the Python programmers under you who wanted to make your app print, you probably have used pyCUPS to talk with the printing system. Perhaps you have also seen that it is not well maintained, not keeping pace with new APIs. Problem was its design, being a maintenance nightmare.
But for libcups3 it gets much better, thanks to the most Pythonic GSoC contributor we ever had, and CFFI:
https://soumyadghosh.github.io/website/interns/gsoc-2025/gsoc-pycups-is-intelligent/
Thanks @soumyadghosh
#OpenPrinting #Python #Pythonic #CFFI #CUPS #GSoC #GSoC2025
What do you think of creating and maintaining a data portfolio/personal website? Was it useful in securing your first data job? Has it been rewarding in any other way in your career?
@fosserytech
#Systemd 259 requires #python >= 3.9.0…
Well, isn't it a circular dependency? 😱😜🤪😭
Przygotowałem wstępnie weryfikację autentyczności plików z #PyPI dla #Gentoo.
Wiecie, ten nowy wynalazek, który chroni przed atakami podmieniającymi pliki na PyPI, i upewnia się, że macie do czynienia z oryginalnymi plikami z GitHuba. No bo, jak powszechnie wiadomo, repozytoria na GitHubie i tamtejsze systemy CD są mało prawdopodobnym celem ataków. No i absolutnie nie trzeba się martwić tym, że klucze, repozytoria i te systemy CD są w rękach Microsoftu.
https://github.com/gentoo/gentoo/pull/43549
#bezpieczeństwo #GitHub #Microsoft #Python #SigStore
I've drafted support for verification of #PyPI provenance for #Gentoo.
You know, the new fancy thing that protects against supply chain attacks on PyPI, and verifies that you're using genuine #GitHub artifacts. Because, you know, GitHub repositories and deployment pipelines are an unlikely attack vector. And you definitely don't need to worry about #Microsoft owning the keys, the repositories and the pipelines at all.
https://github.com/gentoo/gentoo/pull/43549
🚫 Copying your Python virtual environment folder? Think again.
Simply copying the venv folder might seem convenient—but it often leads to broken setups and hidden issues.
A new blog post explores why this method fails and how to migrate environments properly using reproducible workflows.
📖 Read more: https://ka2in.github.io/mydocusaurus/blog/python-venv-migration
#Python #venv #DevTips #technicalwriting #Sphinx
"Rust becomes Python's performance co-pilot" - By Wolf Hosbach
https://www.heise.de/en/news/Rust-becomes-Python-s-performance-co-pilot-10560471.html
#Python #rustlang #performance #programming
What are the best open source python librairies to implement a RAG? #python #AI #RAG
I'm getting back into SuperCollider (and running it from Neovim!) This is taking an MP3 I glitched up in Python (as discussed here: reillyspitzfaden.com/posts/2025/0...) and looping random segments of it like a skipping CD. #SuperCollider #Neovim #Python #Glitch #SoundDesign #ElectronicMusic
I'm getting back into SuperCollider (and running it from Neovim!)
This is taking an MP3 I glitched up in Python (as discussed here: https://reillyspitzfaden.com/posts/2025/04/databending-part-3/) and looping random segments of it like a skipping CD.
#SuperCollider #Neovim #Python #Glitch #NoiseMusic #ExperimentalMusic #SoundDesign #ElectronicMusic