Code Monkey home page Code Monkey logo

bartpy's Introduction

bartpy

BART-logo

Python bindings for BART.

Overview

This repo contains code to generate an updated Python wrapper for the Berkeley Advance Reconstruction Toolbox. The repo aims to expose command line tools and internal library functions to Python users.

The command line tools can be listed by running bart from the command line:

tools

Each of these has been exposed to the command-line via the bartpy.tools library:

code img

For users looking to integrate BART functions into existing Python workflows, and work fluidly with Numpy, SigPy, or other scientific packages, bartpy.tools should suffice!

[In Development] For developers looking to build Python tools using BART's internal C functions, the internal library functions expose BART's development libraries to the user. This is currently under production and not accessible via the master branch.

Requirements

BART version 0.7.00. It is important that running a bart command with the --interface option is successful. For example, you should see something like the following for running bart fft --interface:

interface

Ensure you have Python >= 3.6 and run pip install -r requirements.txt to install necessary dependencies.

Installation.

Once BART and the required libraries are installed, clone this repo.

To support the growth of BART with minimal overhead, the Python code is autogenerated from a user's BART installation. Run python3 setup.py install to build the tools library and install it. If successful, you should be able to import bartpy.tools and interface with the tutorials located in the demos folder.

Before working with the demos folder, unzip data.zip; this file contains the necessary datasets for the demos.

For Developers

The build_tools folder contains the necessary code for generating the tools wrappers.

Low-Level

Documentation on SWIG exists in the doc/ folder along with several links to SWIG documentation for developers interested in working with the experimental wrappers.

bartpy's People

Contributors

hcmh avatar malits avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fyrdahl timwahoo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.