Skip to main content

Load Arrays of Imaging Data

Project description

pylarid: Load Arrays of Imaging Data

pylarid is a Python package that is intended to facilitate analysis of magnetic resonance imaging (MRI) data.

Building Pylarid

pylarid consists of an extension module built in C++ to run on Python 3. pylarid is currently tested using Python 3.12 on macOS Sonoma using Clang and on Windows 11 using Visual Studio, and using Python 3.11 on Arch Linux using GCC.

To build and install pylarid from source, CMake and a compiler that supports C++20 are required.

Build using PyPA's build (Recommended)

Preferably, this is done in a virtual environment. If using Visual Studio, use a 64-bit native tools developer command prompt. First, install the most up-to-date versions of pip and pipx in the virtual environment.

python -m pip install --upgrade pip
pip install --upgrade pipx

Next, obtain the pylarid source code, build, and install.

git clone git@github.com:jme2041/pylarid.git
cd pylarid
pipx run build --wheel -Cbuild-dir=build
pip install .

Note that -Cbuild-dir=build sets the temporary directory to build. This is optional, but recommended for speeding up builds and for avoiding warnings about the intermediate directory being temporary when building with Visual Studio (warning MSB8029).

To uninstall, use pip uninstall pylarid.

Manual Build Using CMake (advanced)

To build and install pylarid directly using CMake, create a build directory within the pylarid directory and follow the normal steps for building and installing software using CMake.

To build and install on macOS and Linux:

mkdir build
cd build
cmake ..
make
make install

To uninstall, use make uninstall.

To build and install on Windows using Visual Studio:

mkdir build
cd build
cmake ..
cmake --build . --config Release
cmake --build . --config Release --target install

To uninstall, use cmake --build . --config Release --target uninstall.

Research and Educational Use Only

pylarid is for research and educational purposes only. Clinical applications are not recommended or advised. pylarid has not been evaluated by the United States Food and Drug Administration (FDA), or by any other agency. pylarid is not intended to diagnose, treat, cure, or prevent any disease.

License

Copyright 2023 Jeffrey M. Engelmann

pylarid is released under the MIT license. For details, see LICENSE.txt.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylarid-0.1.dev0.tar.gz (6.6 kB view hashes)

Uploaded Source

Built Distribution

pylarid-0.1.dev0-cp312-cp312-macosx_14_0_arm64.whl (5.7 kB view hashes)

Uploaded CPython 3.12 macOS 14.0+ ARM64

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page