semvec/pypi-packages huggingface dataset:
snovault-search 6.1.0
Framework-independent package for converting query strings to Elasticsearch queries
Requires Python: >=3.6

[![CircleCI](https://dl.circleci.com/status-badge/img/gh/IGVF-DACC/snovault-search/tree/dev.svg?style=svg)](https://dl.circleci.com/status-badge/redirect/gh/IGVF-DACC/snovault-search/tree/dev)
[![Coverage Status](https://coveralls.io/repos/github/IGVF-DACC/snovault-search/badge.svg?branch=dev)](https://coveralls.io/github/IGVF-DACC/snovault-search?branch=dev)
# snovault-search
Framework-independent package for converting query strings to Elasticsearch queries.

### Install
```bash
$ pip install snovault-search
```

### Example
```python
from snosearch.defaults import DEFAULT_ITEM_TYPES
from snosearch.fields import BasicSearchResponseField
from snosearch.parsers import ParamsParser
from snosearch.responses import FieldedResponse


def basic_search_view(request):
    fr = FieldedResponse(
        _meta={
            'params_parser': ParamsParser(request)
        },
        response_fields=[
            BasicSearchResponseField(
                default_item_types=DEFAULT_ITEM_TYPES
            )
        ]
    )
    return fr.render()
```

### Run tests
```bash
$ pip install -e .[test]
$ pytest
```

### Publish on PyPI
Bump version in `setup.cfg`, then build and upload:
```bash
$ python -m build
$ twine upload dist/*
```
qbd 0.1.2.post5
Creates data cubes from FITS-file image data.
Requires Python: >3.9

# Installation
 
``` bash
pip install qbd
```
# Running `qbd`

## 1. Create demo data
Run the `qbd` command with the `--create-demo-data` flag to create the directory
`channels` with FITS demo data.
```bash
qbd --create-demo-data
Writing file: channels/demo-channel-001.fits
Writing file: channels/demo-channel-002.fits
Writing file: channels/demo-channel-003.fits
Writing file: channels/demo-channel-006.fits
Writing file: channels/demo-channel-007.fits
```

## 2. Create input file list
Create a simple text file containing the filepaths to input the channel data.
```bash
find channels/*.fits > channel-list.txt
```

```bash
cat channel-list.txt
channels/demo-channel-001.fits
channels/demo-channel-002.fits
channels/demo-channel-003.fits
channels/demo-channel-006.fits
channels/demo-channel-007.fits
```

## 3. (Optional) Add empty channels
Add empty channels (filled with np.nan) by adding an empty lines in channel-list.txt:
```bash
cat channel-list.txt
channels/demo-channel-001.fits
channels/demo-channel-002.fits
channels/demo-channel-003.fits


channels/demo-channel-006.fits
channels/demo-channel-007.fits
```

## 4. Start cube creation
Start the data cube creation by calling the `channel-list.txt` with `qbd`.
```
qbd channel-list.txt
Creating empty cube: cube.fits
Processing channel 1/7: channels/demo-channel-001.fits
Processing channel 2/7: channels/demo-channel-002.fits
Processing channel 3/7: channels/demo-channel-003.fits
Processing channel 4/7: Empty channel. Setting NaN.
Processing channel 5/7: Empty channel. Setting NaN.
Processing channel 6/7: channels/demo-channel-006.fits
Processing channel 7/7: channels/demo-channel-007.fits
Cube filled: cube.fits
```