semvec/pypi-packages huggingface dataset:
MRArbGrad 4.3.0
Gradient waveform design tool for arbitrary k-space trajectories.
Keywords: mri, pulse-sequence, gradient-waveform, non-Cartesian, real-time

# Magnetic Resonance Arbitrary Gradient Toolbox (MRArbGrad, MAG)

## Introduction
This toolbox is a pip package with C++ backend. The pip package can be called via Python interface to generate **non-Cartesian** gradient waveforms for built-in and external trajectories. The C++ source code (in `mrarbgrad_src/ext/`) can be ported to other pulse sequence project like UIH's Adept project for gradient waveform calculation.

## Install
**Optionally**, to create a new conda environment (in case the dependencies in this package break your current environment), please run:
```bash
$ conda create -n magtest -y
$ conda activate magtest
$ conda install python==3.12 -y
```

This package is **NOT** restricted to use `Python 3.12`. Feel free to adjust at your convenience, just if the package works.

To install this package from PyPI:
```bash
$ pip install mrarbgrad
```
To install this package from a local repository:
```bash
$ bash install.bash
```

You can also install via `pip install .` but remember to delete `*.egg-info` or pip will run into bug when uninstalling this package in current folder (see comments in `install.bash`).

## Examples & Usages
Examples for generating gradient waveforms for either built-in trajectory (trajectory library) or external trajectory (expressed by trajectory function or trajectory samples) can be found in the `example` folder.

## Reference
If this project helps you, please cite [our paper](https://ieeexplore.ieee.org/document/11352950):

[1] Luo R, Huang H, Miao Q, Xu J, Hu P, Qi H. Real-Time Gradient Waveform Design for Arbitrary k-Space Trajectories. IEEE Transactions on Biomedical Engineering. 2026;1–12.
container-source-policy 0.6.0
Generate Buildx container source policy file for a given Dockerfile
Requires Python: >=3.9

# container-source-policy

Generate a Docker BuildKit **source policy** file by parsing Dockerfiles and pinning `FROM` images to
immutable digests.

This PyPI package ships a small Python launcher plus a prebuilt `container-source-policy` binary for your platform.

## Install

Recommended (isolated):

```bash
pipx install container-source-policy
```

Or into the current environment:

```bash
python -m pip install container-source-policy
```

## Usage

```bash
container-source-policy pin --stdout Dockerfile > source-policy.json
EXPERIMENTAL_BUILDKIT_SOURCE_POLICY=source-policy.json docker buildx build -t my-image:dev .
```

## More info

See the upstream repository for full documentation:
<https://github.com/wharflab/container-source-policy>