semvec/pypi-packages huggingface dataset:
miniqc 23.1.1
A BIDS app for performing minimal QC beyond validation
Requires Python: >=3.9

# miniQC

[![PyPI - Version](https://img.shields.io/pypi/v/miniqc.svg)](https://pypi.org/project/miniqc)
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/miniqc.svg)](https://pypi.org/project/miniqc)
[![GHCR - Available Tags](https://ghcr-badge.egpl.dev/OpenNeuroOrg/miniqc/tags?trim=major&label=ghcr.io&ignore=unstable,latest)](https://github.com/OpenNeuroOrg/miniqc/pkgs/container/miniqc)

-----

miniQC is a BIDS App for performing minimal quality control beyond validation.
Its goal is to rapidly detect data corruption, as opposed to dataset coherence
or image quality.

**Table of Contents**

- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [License](#license)

## Installation

```console
pip install miniqc
```

## Usage

`miniqc` is a [BIDS-App](https://bids-apps.neuroimaging.io/), so can be run
as follows:

```
miniqc /path/to/dataset /output participant
```

Because miniqc does not currently generate any outputs or modify its behavior
based on analysis level, output directory and analysis level are optional.

This tool is meant as a CLI application and does not provide a public API.

### Example

```console
$ miniqc tests/data/bids_dataset
[
  [
    "sub-01/anat/sub-01_acq-truncated_T2w.nii.gz",
    "FailedCheck",
    "Expected 477 bytes; found 352"
  ],
  [
    "sub-01/anat/sub-01_acq-dangling_T2w.nii.gz",
    "FileNotFoundError",
    "[Errno 2] No such file or directory: 'tests/data/bids_dataset/sub-01/anat/sub-01_acq-dangling_T2w.nii.gz'"
  ]
]
```

Single file usage is also permitted:

```console
$ miniqc tests/data/bids_dataset/sub-01/anat/sub-01_acq-truncated_T2w.nii.gz
[
  [
    "/git/miniqc/tests/data/bids_dataset/sub-01/anat/sub-01_acq-truncated_T2w.nii.gz",
    "FailedCheck",
    "Expected 477 bytes; found 352"
  ]
]
```

### Outputs

The output of this tool is a JSON array of arrays, each of length 3.
Each sub-array contains the failed file (relative to dataset root),
the type of error, and a message with more detail.

## Testing

With the [hatch](https://hatch.pypa.io) project management tool installed:

```console
hatch run test:cov
```

Alternately, just run `pytest`, although you will need the dependencies installed.

## License

`miniqc` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.
pearcey 0.1.1
A python package to compute the Pearcey function/integral in catastrophe optics
Requires Python: >=3.7

# pearcey
A python package to compute the Pearcey function/integral in catastrophe optics

The Pearcey function $\text{Pe}(x, y)$ is defined as

$$\text{Pe}(x, y) = \int_{-\infty}^{\infty}e^{i(t^4 + xt^2 + yt)} dt$$

![pearcey](https://github.com/user-attachments/assets/bcefda01-fd9e-4323-95a2-b9e34a3b88e6)

## Requirements
- numpy
- scipy (preferrably >= 1.10.0 for a better numerical integration scheme)

## Installation
This package is available on PyPI. To install, simply run
```
pip install pearcey
```

## Usage
The core function is `pearcey(x, y)`. For example, to compute the value of the Pearcey function $\text{Pe}(x, y)$ at $x = 0$ and $y = 0$, simply do
```python
>>> from pearcey import pearcey; pearcey(0, 0)
(1.6748133935381728+0.693730422047619j)
```

For details, refer to the docstring [here](https://github.com/ricokaloklo/pearcey/blob/main/pearcey/pearcey.py#L142).