Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non code details #174

Merged
merged 5 commits into from
Jul 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/lint-every-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: lint-every-pr
on:
pull_request:
branches:
- master
- main
jobs:
lint:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pull-request-commit.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: pull-request-commit
on:
pull_request:
branches: ['master']
branches: ['main']
jobs:
build:
strategy:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: push-master
name: push-main
on:
push:
branches: ['master']
branches: ['main']
jobs:
build:
uses: ./.github/workflows/workflow-build.yml
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
name: public-ubuntu-latest-3.9
path: public/master
path: public/main
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/workflow-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
shell: bash
run: |
sphinx-apidoc -o docs/source/apidoc src/yadg -T -M -f --templatedir=docs/apidoc_t
sphinx-build -W -b html docs/source public/master
sphinx-build -W -b html docs/source public/main
- uses: actions/upload-artifact@v4
with:
name: public-${{ inputs.os }}-${{ inputs.pyver }}
path: public/master
path: public/main
36 changes: 28 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Documentation](https://badgen.net/badge/docs/dgbowl.github.io/grey?icon=firefox)](https://dgbowl.github.io/yadg)
[![PyPi version](https://badgen.net/pypi/v/yadg/?icon=pypi)](https://pypi.org/project/yadg)
[![Github link](https://badgen.net/github/tag/dgbowl/yadg/?icon=github)](https://github.com/dgbowl/yadg/)
[![Github status](https://badgen.net/github/checks/dgbowl/yadg/?icon=github)](https://github.com/dgbowl/yadg/actions/workflows/push-master.yml)
[![Github status](https://badgen.net/github/checks/dgbowl/yadg/?icon=github)](https://github.com/dgbowl/yadg/actions/workflows/push-main.yml)


# ![yet another datagram](./docs/source/images/yadg_banner.png)
Expand All @@ -27,32 +27,52 @@ Additionally, data from multiple files of the same type, or even of different ty
- original metadata from the extracted files is stored under `original_metadata`
- extensive *dataschema* validation using provided specifications


The full list of capabilities and features is listed in the [project documentation](http://dgbowl.github.io/yadg).

### Installation:
The released versions of `yadg` are available on the Python Package Index (PyPI) under [yadg](https://pypi.org/project/yadg). Those can be installed using:

```bash
pip install yadg
pip install yadg
```

If you wish to install the current development version as an editable installation, check out the `master` branch using git, and install `yadg` as an editable package using pip:
If you wish to install the current development version as an editable installation, check out the `main` branch using git, and install `yadg` as an editable package using pip:

```bash
git clone [email protected]:dgbowl/yadg.git
cd yadg
pip install -e .
git clone [email protected]:dgbowl/yadg.git
cd yadg
pip install -e .
```

Additional targets `yadg[testing]` and `yadg[docs]` are available and can be specified in the above commands, if testing and/or documentation capabilities are required.

### Usage:
After installing `yadg`, you can extract data from single files of known filetypes using:

```bash
yadg extract <filetype> <infile> [outfile]
```

This will write the data extracted from the `infile` into a NetCDF file called `outfile`. An example usage for BioLogic MPR files would be:

```bash
yadg extract eclab.mpr example_file.mpr output_file.nc
```

Alternatively, you can obtain a `DataTree` object in Python via:

```python
import yadg
yadg.extractors.extract(filetype=<filetype>, path=<infile>)
```

More detailed [usage instructions](https://dgbowl.github.io/yadg/main/usage.html) are available in the project documentation.

### Contributors:
- [Peter Kraus](http://github.com/PeterKraus)
- [Nicolas Vetsch](http://github.com/vetschn)

### Acknowledgements

This project has received funding from the following sources:

- European Union’s Horizon 2020 programme under grant agreement No 957189.
Expand Down
2 changes: 1 addition & 1 deletion docs/source/version.5_1.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
:target: https://github.com/PeterKraus/yadg/tree/5.1
.. image:: https://img.shields.io/static/v1?label=yadg&message=v5.1&color=blue&logo=pypi
:target: https://pypi.org/project/yadg/5.1/
.. image:: https://img.shields.io/static/v1?label=release%20date&message=2024-XX-YY&color=red&logo=pypi
.. image:: https://img.shields.io/static/v1?label=release%20date&message=2024-07-01&color=red&logo=pypi


Developed in the |concat_lab|_ at Technische Universität Berlin (Berlin, DE).
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ docs = [
]

[project.urls]
Documentation = "https://dgbowl.github.io/yadg/master"
Documentation = "https://dgbowl.github.io/yadg/main"
Issues = "https://github.com/dgbowl/yadg/issues"
Repository = "https://github.com/dgbowl/yadg/"

Expand Down
Loading