semvec/pypi-packages huggingface dataset:
forbids 0.0.2rc149.post1
forBIDS - BIDS protocol compliance validation
Requires Python: >=3.11.0

# ![forBIDS logo](docs/static/forbids_logo.png) forBIDS: a protocol compliance check

forBIDS aims to be a tool for BIDS that forbids deviation from a established acquisition protocol.

It is meant to be ran continuously on session newly converted to BIDS, as a validation before being merged into a dataset.

It aims to check that all planned sequences have been acquired (allowing optional ones), and check that a configured set of sequence parameters match expected values.
It is designed for multi-centric/multi-vendor studies: the sequence parameters constraint can be set conditional to Manufacturer/Model/Instrument/SoftwareVersion.


## design

- `forbids init <bids_path>` : create a `.forbids` folder that contains a BIDS-like structure with json schemas for each series in a BIDS dataset with a set of sessions from each scanner.
- `forbids validate <bids_path> --participant-label <sub> [--session-label <ses>]` : validate the subject/session against the schema found in `.forbids` by validating all schema files against the subject/session BIDS files and checking for missing or extra/unwanted BIDS files.
gni 0.1.4
Library to create a GPU Node ID
Requires Python: >=3.10

# GNI - Python pkg

GNI uses [pyo3](https://pyo3.rs/main/getting-started.html?#installation) to
write a native python library, and
[maturin](https://pyo3.rs/main/getting-started.html?#building) is the
recommended build tool.

## Install from pypi

```
$ pip install gni
```

Running the library:
```
$ python
>>> import gni_lib
>>> gni_lib.get_gpu_node_id()
<id>
```

## Building from source

1. Install maturin (see
   [maturin installation guide](https://www.maturin.rs/installation))

   ```
   pip install maturin
   ```

1. Builds the package
   ```
   maturin build
   ```

> You can view the built wheels in the target/wheels directory

## Installing from source

1. Builds the crate and installs it in the current env

   ```
   maturin develop --features python
   ```

1. Run gni
   ```
   python src/python/main.py
   ```