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

Version 5.1 #280

Merged
merged 26 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d6a047e
CLN: Fix line break in formats/seq/simple.py
NickleDave Oct 11, 2024
6de1d18
Import format classes at package level, fix #273
NickleDave Oct 11, 2024
061293c
Have SimpleSeq only map column names in `column_map`, fix #272
NickleDave Oct 11, 2024
aceb7cc
Make SimpleSeq work with csv that doesn't have labels, fix #271
NickleDave Oct 11, 2024
4f28227
Add validation logic for `columns_map` to SimpleSeq
NickleDave Oct 11, 2024
b5986db
Fix SimpleSeq to handle empty csv file, fixes #264
NickleDave Oct 11, 2024
4e46831
Fixup add validation of columns_map to SimpleSeq.from_file
NickleDave Oct 11, 2024
d9e1155
Add fixture `jourjine_et_al_2023_csv_path` to fixtures/simple.py
NickleDave Oct 11, 2024
6cc51e5
Write unit tests for new features added to SimpleSeq
NickleDave Oct 11, 2024
ddd5e5a
Fixup import format classes at package level
NickleDave Oct 11, 2024
75e0fa3
Rewrite crowsetta.data as crowsetta.examples, fix #278
NickleDave Oct 11, 2024
2354554
Add csv from Jourjine et al 2023 dataset in tests + examples, fix #274
NickleDave Oct 11, 2024
1f7b255
Add helpful error message in SimpleSeq.from_file for when columns don…
NickleDave Oct 12, 2024
ce6d4e0
Fix examples in docstrings of format classes after changing data -> e…
NickleDave Oct 12, 2024
5db6b8a
Apply linting
NickleDave Oct 12, 2024
91bc39d
Squelch flake8 line-length warnings for examples
NickleDave Oct 12, 2024
d10d02b
Add how-to on how to work with unlabeled segmentations
NickleDave Oct 12, 2024
a4827d6
Use crowsetta.example not crowsetta.data in doc/index.md
NickleDave Oct 12, 2024
2eee21b
Use crowsetta.example not crowsetta.data in doc/api/core.md
NickleDave Oct 12, 2024
64a670f
Fixup empty SimpleSeq unit test
NickleDave Oct 12, 2024
2f1b2b4
Add __len__ to Sequence, fix #276
NickleDave Oct 12, 2024
226b61e
Fix unit test for empty SimpleSeq to just use pytest tempdir, not tem…
NickleDave Oct 12, 2024
e1d8943
Add unit tests for Sequence.__len__
NickleDave Oct 12, 2024
2012e4a
Add assert in unit test for empty SimpleSeq that we can call to_seq a…
NickleDave Oct 12, 2024
25d4e08
Fixup usage of in index.md -- fix example names
NickleDave Oct 12, 2024
929be20
Put all of API onto one page in docs, fix how we show crowsetta.examp…
NickleDave Oct 12, 2024
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
129 changes: 0 additions & 129 deletions doc/api/core.md

This file was deleted.

20 changes: 0 additions & 20 deletions doc/api/formats.md

This file was deleted.

195 changes: 181 additions & 14 deletions doc/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,189 @@ This section documents the
[API](https://en.wikipedia.org/wiki/API)
of crowsetta.

```{list-table}
:widths: 30 70
(api-core)=

* - {ref}`Core <api-core>`
- The core data types, classes and modules of crowsetta
* - {ref}`Interface <api-interface>`
- Defines an interface for classes that represent annotation formats
* - {ref}`Formats <api-formats>`
- Modules with the classes representing annotation formats,
and functions for conveniently accessing them.
# Core

This section documents the core API of crowsetta,
including data types, other classes, and modules.

## Data types

### Annotation

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.Annotation
```

### Sequence

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.Sequence
```

### Segment

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.Segment
```

### BBox

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.BBox
```

## Classes

### Transcriber

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.Transcriber
```

## Modules

### `crowsetta.interface`

For complete documentation of the interface,
please see {ref}`this page <api-interface>`.

```{eval-rst}
.. autosummary::
:toctree: generated
:template: module.rst

crowsetta.interface
```

```{toctree}
:hidden: true

core
interface
formats
### typing

```{eval-rst}
.. autosummary::
:toctree: generated
:template: module.rst
:recursive:

crowsetta.typing
```


### validation

```{eval-rst}
.. autosummary::
:toctree: generated
:template: module.rst
:recursive:

crowsetta.validation
```

## Decorators

### `crowsetta.register_format`

```{eval-rst}
.. autosummary::
:toctree: generated

crowsetta.register_format
```

## Example data

```{eval-rst}
.. autosummary::
:toctree: generated

crowsetta.example
crowsetta.examples.show
```

(api-formats)=

# Formats

This section documents the API of the :mod:`crowsetta.formats` module.
It is generated automatically.
If you are a crowsetta user looking for
more detail about the built-in formats,
please see: {ref}`formats-index`.

```{eval-rst}
.. autosummary::
:toctree: generated
:template: module.rst
:recursive:

crowsetta.formats
crowsetta.formats.bbox
crowsetta.formats.seq
```

(api-interface)=

# Interface

The section documents the API of the :mod:`crowsetta.interface` module.

```{eval-rst}
.. autosummary::
:toctree: generated
:template: module.rst
:recursive:

crowsetta.interface
```

## Base

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.interface.base.BaseFormat
```

## Sequence-Like

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.interface.seq.SeqLike
```

## Bounding Box-Like

```{eval-rst}
.. autosummary::
:toctree: generated
:template: class.rst

crowsetta.interface.bbox.BBoxLike
```
42 changes: 0 additions & 42 deletions doc/api/interface.md

This file was deleted.

Loading
Loading