Sábados de manhã em outubro e novembro no #SescAvPaulista: Grupo de estudos em #Python
https://www.sescsp.org.br/programacao/grupo-de-estudos-em-python-primeiros-passos/
New 📚 Release! Practical Pydantic: The Missing Guide to Data Validation in Python by Nuno Bispo
Bad data breaks good code.
Enter Pydantic.
Find it on Leanpub!
Link: https://leanpub.com/practical-pydantic
#books #ebooks #python #datascience #programming #coding

PEP 810 – Explicit lazy imports | peps.python.org https://lobste.rs/s/efuao3 #programming #python
https://peps.python.org/pep-0810/
Make a skinned form in Python, Part 1
https://rodstephensbooks.com/skinned_form_part1.html
#Python #SkinnedForms #UserInterface #UI

One method to understand some non-trivial #Python modules is to try to add high-precision type hints to help you build up a mental model of how things connect
At #DjangoCon US, I shared my own personal QR Code Generator app, never expecting anyone to try to create an account there.
I appreciate your enthusiasm, but I don't actually want to collect your personal information 😅 You can generate QR code using my site without creating an account!
Anyway, I needed to figure out how to disable account creation on my site using django-allauth. If you have a similar problem, check my blog on how to do it.
https://mariatta.ca/posts/disabling-signup-django-allauth/
Y'all, I've just made a #python coding breakthrough! The intermediate state between "True" and "False" is not, apparently "Frue". It took me an embarrassing amount of time to learn this.
#amcoding
PEP 810: Explicit lazy imports https://lobste.rs/s/bqecne #python
https://discuss.python.org/t/pep-810-explicit-lazy-imports/104131
nazgul is a joint effort by:
* J. Michael Burgess
* Ewan Cameron
* Dmitry Svinkin
Nazgul is a framework for performing GRB localization via fitting non-parametric models to their data time-series and computing the the time delay between them. It is currentrly built upon the magic of Stan and implements a parallel version of non-stationary Random Fourier Features. The idea is get away from heuristic methods such as cross-correlation which do not have a self-consistent statitical model.
The idea is that satellites throughout the Sol system observe gamma-ray bursts at different times due to the finite speed of light. This creates a time delay in their observed light curves which can be used to triangulate the gamma-ray burst position on the sky. These triangulation create annuli or rings on the sky which Nazgul searchs for so that it, in the darkness, it can bind them to a location on the sky.
Left image:
The heriarchical model is shown below and details can be found in here https://arxiv.org/abs/2009.08350. If you find the method and/or code useful in your research we ask that you please cite the paper.
Right image:
The sister program to simulate time-delayed light curves is pyIPN and can be used to generate time-delayed light curves for algorithm testing.
https://github.com/grburgess/pyipn
#space #code #python #science #astronomy #astrophysics #tech #NASA

Learning #python
I want to experiment with datas and api this weekend. Any fun little project ideas with #pandas, #numpy or #beautifulsoup ?
I learned about PsychoPy which is an open-source package for running experiments in Python (a real and free alternative to Matlab).
Anyone using it?
🌗 Python PEP 810 – 明確的延遲匯入
➤ 透過明確語法,提升 Python 程式啟動效能與資源使用效率
✤ https://pep-previews--4622.org.readthedocs.build/pep-0810/
這份 Python Enhancement Proposal (PEP) 提出了「明確的延遲匯入」作為一項語言級別的新功能。此提案旨在解決 Python 模組載入時即時執行的問題,允許開發者明確標記個別匯入為「延遲」。如此一來,模組的載入與執行將延遲到第一次使用該匯入名稱時才進行,進而顯著降低程式啟動時間、記憶體使用量,並減少不必要的計算。這對於命令列工具、測試套件以及依賴圖龐大的應用程式尤其有益,同時保持了對舊版 Python 的完全向後相容性。
+ 這項提議太棒了!特別是對於那些需要快速啟動的命令列工具,可以省去很多載入不必要模組的時間。
+ 我一直在尋找一種更清晰、更標準化的方式來處理那些僅用於型別提示的匯入,延遲匯入聽起來是個絕佳的解決方案。
#Python #程式設計 #效能優化