home.social

#scipy — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #scipy, aggregated by home.social.

  1. @rzeta0 my friend, what do you think about the code using np.roll() (in the linked sketch)?

    I'm afraid it would be a bit hard to explain on a short class. So I'll use the simpler inefficient function...

    The next big step in efficiency would be using #scipy I think:

    def count_live_neighbors(status):
    """Counts the number of neighboring live cells"""
    kernel = np.array([
    [1, 1, 1],
    [1, 0, 1],
    [1, 1, 1]
    ])
    return scipy.signal.convolve2d(status, kernel, mode='same', boundary="wrap")
  2. Hi all,

    Hope you're fine and safe

    An important #announcement about #tyssue , a Python modeling library :

    github.com/DamCB/tyssue/blob/m

    Please 🔁 this message to reach the few and far apart people that might be impacted :pray:

    #openScience #scipy

  3. Python Package Guru by Fabrizio Damicelli

    pypkg.guru

    search over #PyPI #python #packages
    faster than on pypi.org and interactively

    discover packages based on their capabilities (eg, try out "fast dataframe")

    #neurodon #neuroscience #compsci #scipy

  4. CW: Advent of Code 2025 Day 10 Spoilers

    Today I "cheated" and used scipy's MILP solver for Part 2. Discretion is the better part of valor, as they say, and writing a constraint solver by hand is not what I had planned for this Wednesday morning. The existence of `uv` to deal with all the dependencies makes reaching for scipy for even little scripts like this an easy choice.

    Part 1 was trivial. Treat the lights and the buttons as bitmasks and recognize that buttons XOR themselves so they're pressed at most 1 time each. Generate the smallest combination of buttons that XOR to the target.

    Part 2 is probably solvable via something like DFS before the heat death of the universe, but it would take way too long. Instead, I used scipy's integer linear programming solver, defined the constraints, objective, and bounds, and let it do its thing.

    github.com/biesnecker/aoc-anyh

    #adventofcode #adventofcode2025 #python #scipy

  5. #30DayMapChallenge : #Fire

    The #Volcanic Isles . A brief history of volcanism across The British Isles.

    Quite pleased with how this one turned out.

    Location of volcanoes taken from wikipedia (spotted a mistake and got to make an edit to wikipedia in the process); fault lines from the #BGS 625k bedrock dataset and the IE GSI 500k Bedrock Geology for Ireland. Font: League-Spartan by the League of Moveable Type.

    #requests, #pandas and #geopandas for scraping and wrangling.#scipy for making the proximity surface (that's the colour scheme), #matplotlib for plotting. With all labeling done manually in #inkscape.

    EDIT: I've been kindly and helpfully informed that (a) Ben Nevis' age is closer to 399 Ma; (b) some are missing; (c) others perhaps shouldn't be there; (d) it's complicated. So, maybe don't use this map to make any strategic decisions.

    #volcanism #volcano #imNotExtinctImDormant #magma #geology #faultlines

  6. #30DayMapChallenge : #Fire

    The #Volcanic Isles . A brief history of volcanism across The British Isles.

    Quite pleased with how this one turned out.

    Location of volcanoes taken from wikipedia (spotted a mistake and got to make an edit to wikipedia in the process); fault lines from the #BGS 625k bedrock dataset and the IE GSI 500k Bedrock Geology for Ireland. Font: League-Spartan by the League of Moveable Type.

    #requests, #pandas and #geopandas for scraping and wrangling.#scipy for making the proximity surface (that's the colour scheme), #matplotlib for plotting. With all labeling done manually in #inkscape.

    EDIT: I've been kindly and helpfully informed that (a) Ben Nevis' age is closer to 399 Ma; (b) some are missing; (c) others perhaps shouldn't be there; (d) it's complicated. So, maybe don't use this map to make any strategic decisions.

    #volcanism #volcano #imNotExtinctImDormant #magma #geology #faultlines

  7. #30DayMapChallenge : #Fire

    The #Volcanic Isles . A brief history of volcanism across The British Isles.

    Quite pleased with how this one turned out.

    Location of volcanoes taken from wikipedia (spotted a mistake and got to make an edit to wikipedia in the process); fault lines from the #BGS 625k bedrock dataset and the IE GSI 500k Bedrock Geology for Ireland. Font: League-Spartan by the League of Moveable Type.

    #requests, #pandas and #geopandas for scraping and wrangling.#scipy for making the proximity surface (that's the colour scheme), #matplotlib for plotting. With all labeling done manually in #inkscape.

    EDIT: I've been kindly and helpfully informed that (a) Ben Nevis' age is closer to 399 Ma; (b) some are missing; (c) others perhaps shouldn't be there; (d) it's complicated. So, maybe don't use this map to make any strategic decisions.

    #volcanism #volcano #imNotExtinctImDormant #magma #geology #faultlines

  8. #30DayMapChallenge : #Fire

    The #Volcanic Isles . A brief history of volcanism across The British Isles.

    Quite pleased with how this one turned out.

    Location of volcanoes taken from wikipedia (spotted a mistake and got to make an edit to wikipedia in the process); fault lines from the #BGS 625k bedrock dataset and the IE GSI 500k Bedrock Geology for Ireland. Font: League-Spartan by the League of Moveable Type.

    #requests, #pandas and #geopandas for scraping and wrangling.#scipy for making the proximity surface (that's the colour scheme), #matplotlib for plotting. With all labeling done manually in #inkscape.

    EDIT: I've been kindly and helpfully informed that (a) Ben Nevis' age is closer to 399 Ma; (b) some are missing; (c) others perhaps shouldn't be there; (d) it's complicated. So, maybe don't use this map to make any strategic decisions.

    #volcanism #volcano #imNotExtinctImDormant #magma #geology #faultlines

  9. #30DayMapChallenge : #Fire

    The #Volcanic Isles . A brief history of volcanism across The British Isles.

    Quite pleased with how this one turned out.

    Location of volcanoes taken from wikipedia (spotted a mistake and got to make an edit to wikipedia in the process); fault lines from the #BGS 625k bedrock dataset and the IE GSI 500k Bedrock Geology for Ireland. Font: League-Spartan by the League of Moveable Type.

    #requests, #pandas and #geopandas for scraping and wrangling.#scipy for making the proximity surface (that's the colour scheme), #matplotlib for plotting. With all labeling done manually in #inkscape.

    #volcanism #volcano #imNotExtinctImDormant #magma #geology #faultlines

  10. Все об устройстве Q65 с примерами на Python (часть 1)

    Q65 — цифровой протокол, разработанный Джо Тейлором (K1JT) и его командой в 2021 году для проведения минимальных связей в условиях сложных трасс прохождения радиосигнала, в том числе для проведения связи через отражение сигнала от Луны, где сигналы не только очень сильно ослабевают, но и имеют Доплеровский разброс. В этой статье будут рассмотрены подробности работы протокола. Статья может быть интересна радиолюбителям, как знакомым, так и не знакомым с Q65, а также тем, кто хочет понять устройство этого протокола.

    habr.com/ru/articles/965862/

    #ham #hamradio #numpy #scipy #python #python3 #LDPC #QRA #GF #Q65

  11. RE: hachyderm.io/@ponderingpothos/

    Scipy is a phenomenal library. It's not every day that one can beat its performance by 1-2 orders of magnitude. Today is that day, though!

    Must-read post if you care about any of:
    - high performance Rust
    - numerical methods
    - how Rust can make Python faster

    #rust #rustlang #scipy #python #optimization

  12. Все об устройстве MSK144 с примерами на Python (часть 2)

    MSK144 — цифровой протокол, разработанный Джо Тейлором (K1JT) и его командой в 2016 году для проведения связей через метеорное рассеивание. В предыдущей части были рассмотрены общие характеристики протокола, а также алгоритмы, формирующие сигнал. В этой части статьи рассматриваются механизмы детектирования и декодирования сигналов в протоколе MSK144. Статья может быть интересна радиолюбителям и людям, интересующимся темой цифровой обработки сигналов.

    habr.com/ru/articles/956582/

    #ham #hamradio #python #python3 #scipy #numpy #msk #msk144 #ldpc #crc

  13. Коротко об устройстве протокола MSK144 с примерами на Python

    MSK144 — цифровой протокол, разработанный Джо Тейлором (K1JT) и его командой в 2016 году для проведения связей через метеорное рассеивание. В этой статье будут рассмотрены подробности работы протокола. Статья может быть интересна радиолюбителям, как знакомым, так и не знакомым с MSK144 и связью через метеорное рассеивание, а также тем, кто хочет понять устройство этого протокола.

    habr.com/ru/articles/946898/

    #ham #hamradio #python #python3 #scipy #numpy #msk #msk144 #ldpc #crc

  14. @hisold Citing a plain website or GitHub repo is kinda unprofessional. Many widespead software packages have a publication that is well citable, e.g. has this one with a proper DOI: doi.org/10.7717/peerj-cs.103, same for , , , etc. Some have at least a entry (with a DOI) to be properly citable. apparently has none of those.

  15. Did you know the main driver behind NumPy/SciPy didn't get tenure? 🧐
    I guess that board was wrong about Travis Oliphant.

    Literally everything I did in my scientific work since 2008 heavily depends on work like (and in my case particularly) NumPy/SciPy. #numpy #scipy #python #ScientificComputing

    youtu.be/-xhai2iu_QY

  16. Really thankful for the hard work that Travis Oliphant has done.

    youtube.com/watch?v=-xhai2iu_Q

  17. My first experience with #chatgpt5.

    I queried how to write some #python code to write out unformatted, binary files so my #fortran code could read it.

    Proceeds to give me a load of #NumPy code. Completely neglects to mention the #SciPy FortranFile class that can trivially read and write, and appears on the first page of a search.

    This is going to be a bumpy ride!

  18. Всё об устройстве FT8/FT4 с примерами на Python

    FT8 — цифровой радиолюбительский протокол, разработанный Джо Тейлором (K1JT) и Стивом Франке (K9AN) в 2017 году. В этой статье будут рассмотрены подробности работы протокола. Статья может быть интересна радиолюбителям, как знакомым, так и не знакомым с протоколами FT8 и FT4, а также тем, кто хочет в подробностях понять устройство этих протоколов.

    habr.com/ru/articles/928024/

    #ham #hamradio #python #python3 #scipy #numpy #ft8 #ft4 #gfsk #ldpc

  19. Comparing a naive "nearest neighbor" #TravellingSalesmanProblem solver with a #2optSwap one, adding a #DelaunayTriangulation mesh, it shows how often the better solution falls into the triangulation!

    The #py5 sketch is interactive, you can generate other random nodes and move them around dragging with the mouse.

    Code at: github.com/villares/sketch-a-d
    More sketch-a-day: abav.lugaralgum.com/sketch-a-d
    If you like this, support my work: paypal.com/donate/?hosted_butt
    #scipy #Processing #Python #TSP #CreativeCoding

  20. I'll be serving as Editor-in-Chief (EiC) for @pyOpenSci's Python package peer review process for the first half of 2025!

    Interested in reviewing scientific Python packages? Let us know at:

    forms.gle/GHfxvmS47nQFDcBM6

    #PyOpenSci #Python #SciPy

  21. I indulged myself re-reading my finest ever piece of writing: the poliastro 2022 paper for #SciPyUS2022 doi.org/10.25080/maj... Now re-rendered with @curvenote.com to look extra cool 🔥 I'm so damn proud of this work. I miss Astrodynamics and applied math so much 💔 #python #scipy #astrodynamics

    poliastro: a Python library fo...

  22. #python #algorithm #investment #portfolio #optimization
    #scipy vs #montecarlo
    min #variance
    max #sharpe ratio
    #gold #btc #oil #eurusd
    Risk-Adjusted BTC-Gold-Oil- EURUSD Portfolio Optimization for Quant Traders: AutoEDA, Scipy SLSQP, Markowitz, Sharpe & VAR

    #exploremore 👇

  23. #python #algorithm #investment #portfolio #optimization
    #scipy vs #montecarlo
    min #variance
    max #sharpe ratio
    #gold #btc #oil #eurusd
    Risk-Adjusted BTC-Gold-Oil- EURUSD Portfolio Optimization for Quant Traders: AutoEDA, Scipy SLSQP, Markowitz, Sharpe & VAR

    #exploremore 👇

  24. #python #algorithm #investment #portfolio #optimization
    #scipy vs #montecarlo
    min #variance
    max #sharpe ratio
    #gold #btc #oil #eurusd
    Risk-Adjusted BTC-Gold-Oil- EURUSD Portfolio Optimization for Quant Traders: AutoEDA, Scipy SLSQP, Markowitz, Sharpe & VAR

    #exploremore 👇

  25. Индуктивная статистика: доверительные интервалы, предельные ошибки, размер выборки и проверка гипотез

    Одной из самых распространённых задач современной аналитики является формирование суждений о большой совокупности (например, о миллионах пользователей приложения), опираясь на данные лишь о небольшой части этой совокупности - выборке. Можно ли сделать вывод о миллионной аудитории крупного мобильного приложения, собрав данные об использовании лишь для 100 пользователей? Или стоит собрать данные для 1000 пользователей? Ответ интуитивно прост и понятен: чем больше данных есть в наличии, тем более точными будут прогнозируемые результаты для всей совокупности. Какую вероятность ошибиться при анализе мы можем допустить: 5% или 1%? Относятся ли две выборки к одной совокупности, или между ними есть ощутимая значимая разница и они относятся к разным совокупностям? Точность прогноза и вероятность ошибки при ответе на эти и другие вопросы поддаются вполне конкретным расчётам и могут корректироваться в зависимости от потребностей продукта и бизнеса на этапе планирования и подготовки эксперимента. Рассмотрим подробнее, как параметры эксперимента и статистические критерии оказывают влияние на результаты анализа и выводы обо всей совокупности, а для этого смоделируем тысячу A/A , A/B и A/B/C/D тестов .

    habr.com/ru/articles/807051/

    #математика #математическая_статистика #анализ_данных #статистический_анализ #ab_тесты #statsmodels #scipy #python #matplotlib #проверка_гипотез

  26. Scientific Python Lectures

    on the scientific ecosystem: a quick introduction to central tools and techniques. The different chapters each correspond to a 1 to 2 hours course with increasing level of expertise, from beginner to expert.

    lectures.scientific-python.org/


  27. @vmagnin I see from the link below that "#LFortran (as of today) can compile 6 out of 18 Fortran packages in #SciPy" and is asking for input on this issue to start using LFortran to compile SciPy to #WASM and for further testing: github.com/emscripten-forge/re