News for hackers. Stuff that matters.

arthursw

Re:Wind Knitting Factory on Friday July 04, 2025 @04:24AM (#44462404)
Then I have to advertise the work of my father: https://oliviermasson.art/en/4-publications
When I started the project, Spack was not available on Windows so it was not an option. Now I should reconsider this. Thanks!
Thanks for your comments! I fully agree that the Python ecosystem is (overly) complex, and Conda is generally not necessary for Python tools.

I made this library for a workflow management system, which can use any tool packaged with Conda, not just Python tools. The tools can be binaries made in C++, Java programs, or anything Conda can containerize. Note that Docker is not an option because it cannot be installed automatically on all platforms (and because of performances on non-Linux OS).

My users do not have to worry about command lines to install tools since Wetlands is installed in the workflow management system. Each tool is installed when the user executes a workflow using it.

In the bio-image analysis and medical imaging communities —as well as many others— scientists are often unfamiliar with the Python ecosystem and the concept of virtual environments. However, they rely heavily on a wide range of tools, each with numerous dependencies written in various languages. Applications with a built-in package management system like Wetlands greatly simplify their workflow by handling the complex task of setting up environments for these tools behind the scenes.

For example, Napari is an excellent viewer for multi-dimensional images written in Python which can be easily extended via plugins. There are hundreds of plugins, to do things like image denoising, registration, segmentation, particle tracking, etc. Plugins depend on tools (like Segment-Anything-Model, Cellpose, Stardist, etc.) which cannot be installed in the same environment. Wetlands can come to the rescue and isolate each plugin in its own environment.

I hope the purpose of Wetlands is clearer now :)

Show HN: Wetlands – a lightweight Python library for managing Conda environments

https://arthursw.github.io/wetlands/0.2.0/

When building a plugin system for an application, avoiding dependency conflicts is critical. To address this, I created Wetlands – a lightweight Conda environment manager.Wetlands not only simplifies the creation of isolated Conda environments with specific dependencies, but also allows you to run arbitrary Python code within those environments and retrieve the results. It uses the...

( Read More... | 42 comments | 9 points | on HN )
Re:Peer-to-peer file transfers in the browser on Wednesday March 12, 2025 @09:19AM (#43342949)
Re:Watertight vector maps from raster images on Sunday April 11, 2021 @03:38AM (#26768319)
For now it uses the thinning algorithm from the article "Efficient Binary Image Thinning using Neighborhood Maps". https://github.com/autotrace/autotrace/blob/master/src/thin-...
Re:Watertight vector maps from raster images on Sunday April 11, 2021 @03:22AM (#26768225)
Autotrace does have a tracing option "-centerline" which creates a single line on shape boudaries. I think it uses a fine thinning algorithm referenced in the scientific literature, but in the autotrace Todo list there is this item: "- Better thinning algorithm like CAT (Chordal Axis Transformation) " . http://autotrace.sourceforge.net/ https://github.com/autotrace/autotrace
Re:Apollo – An open autonomous driving platform on Tuesday July 18, 2017 @05:56PM (#14800364)
A team at the University of Washington Bothell (UWB) is already working on such thing :

https://readwrite.com/2016/10/19/autonomous-tricycle-tl4/

http://newatlas.com/uwb-autonomous-trikes/45946/