Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
501 commits
Select commit Hold shift + click to select a range
dba6d2d
Updating configs
mbsantiago Aug 27, 2025
0b5ac96
Update model config
mbsantiago Aug 27, 2025
34ef9e9
Make sure preprocessing is batchable
mbsantiago Aug 27, 2025
93e89ec
LR Scheduler takes num of total batches
mbsantiago Aug 28, 2025
1cec332
Change default train duration to 0.256 instead of 0.512
mbsantiago Aug 30, 2025
40f6b64
Remove train preprocessing
mbsantiago Aug 31, 2025
55f473c
Fix logging issue
mbsantiago Aug 31, 2025
cca1d82
Remove blocking .to(device)
mbsantiago Aug 31, 2025
2f4edef
Create separate preprocessor for the train/val datasets
mbsantiago Aug 31, 2025
8d093c3
Use custom AugmentationSequence instead of nn.Sequential
mbsantiago Aug 31, 2025
356be57
Update to latests soundevent
mbsantiago Aug 31, 2025
5b9a5a9
Refactor eval code
mbsantiago Aug 31, 2025
d3d2a28
Move detections array to cpu
mbsantiago Aug 31, 2025
71c2301
Independent preprocessor for generating validation plots
mbsantiago Aug 31, 2025
e0ecc3c
Clear evaluation callback after epoch ends
mbsantiago Sep 1, 2025
db2ad11
Make matching in parallel for speedup
mbsantiago Sep 1, 2025
709b635
torch.multiprocessing didn't work, returning to serial processing
mbsantiago Sep 1, 2025
cf6d0d1
Remove stale tests
mbsantiago Sep 7, 2025
b7ae526
Big changes in data module
mbsantiago Sep 8, 2025
95a884e
Update tests
mbsantiago Sep 8, 2025
b056d7d
Make sure training is still working
mbsantiago Sep 8, 2025
d8d2e5a
Remove preprocessing modules
mbsantiago Sep 8, 2025
c73984b
Small fixes
mbsantiago Sep 8, 2025
cd4955d
Eval
mbsantiago Sep 8, 2025
3376be0
Add experiment name
mbsantiago Sep 9, 2025
951dc59
Add seed option to train
mbsantiago Sep 9, 2025
115084f
Updat lightning version
mbsantiago Sep 9, 2025
16a0fa7
Add targets to train cli
mbsantiago Sep 9, 2025
41b18c3
Better order for checkpoints
mbsantiago Sep 9, 2025
615c811
Add detection_class_name to targets protocol
mbsantiago Sep 9, 2025
e65d5a6
Added more clipping options for validation
mbsantiago Sep 10, 2025
74c419f
Update default config
mbsantiago Sep 10, 2025
4fd2e84
Fix clip missalignment in validation dataset
mbsantiago Sep 11, 2025
6d70140
Default to normal anchor
mbsantiago Sep 13, 2025
01e7a5d
Add ignore at ends when evaluating
mbsantiago Sep 13, 2025
ad5293e
Ad FileNotFoundError to plotting
mbsantiago Sep 13, 2025
d803779
Fix plotting
mbsantiago Sep 14, 2025
8628133
Compute mAP
mbsantiago Sep 14, 2025
ec1c0ff
Better matching module, remove generic from classification evaluations
mbsantiago Sep 14, 2025
e752e96
Restructure eval metrics and plotting
mbsantiago Sep 15, 2025
704b282
Cleaning train module
mbsantiago Sep 15, 2025
60e922d
Use pascal voc map computation by default
mbsantiago Sep 16, 2025
7d6cba5
Restructuring
mbsantiago Sep 16, 2025
bbb96b3
Config restructuring
mbsantiago Sep 16, 2025
957c073
Starting new API
mbsantiago Sep 16, 2025
6e21738
Moved example target config to independent file
mbsantiago Sep 17, 2025
b81a882
Add metrics and plots
mbsantiago Sep 17, 2025
8c80402
Move clips and audio to dedicated module
mbsantiago Sep 18, 2025
6c25787
Logging is not just for training
mbsantiago Sep 18, 2025
e65df81
Evaluate using Lightning too to handle device changes
mbsantiago Sep 18, 2025
4cd983a
Better train cli arg names
mbsantiago Sep 18, 2025
d6ddc45
Better evaluation organisation
mbsantiago Sep 25, 2025
df2abff
Task/Metrics restructure
mbsantiago Sep 26, 2025
87ed44c
Plotting reorganised
mbsantiago Sep 27, 2025
10865ee
Re-org gallery example plots
mbsantiago Sep 28, 2025
c9f0c5c
Added bbox iou affinity function
mbsantiago Sep 28, 2025
30159d6
Update example config
mbsantiago Sep 28, 2025
981e37c
Writing batch inference code
mbsantiago Sep 30, 2025
2f48c58
api_v2
mbsantiago Sep 30, 2025
8727edf
Save checkpoint on max class mAP
mbsantiago Sep 30, 2025
49ec191
Fix API after module name change
mbsantiago Sep 30, 2025
2d79639
Store anns and preds instead of evals in EvaluatorModule
mbsantiago Sep 30, 2025
160cb6a
Add checkpoint config
mbsantiago Oct 4, 2025
24dcc47
Fix import of DEFAULT_CHECKPOINT_DIR
mbsantiago Oct 4, 2025
3913d2d
Add merge config option
mbsantiago Oct 14, 2025
5736421
Add arguments to train cli
mbsantiago Oct 14, 2025
6d0a73d
Add deepmerge dependency
mbsantiago Oct 14, 2025
401a383
Add other output formats
mbsantiago Oct 27, 2025
aa4ad68
Update dependencies
mbsantiago Oct 27, 2025
8366410
Update test
mbsantiago Oct 27, 2025
110432b
Added batch_size and num_workers to API
mbsantiago Oct 29, 2025
efc996a
Add targets to data summary command
mbsantiago Nov 10, 2025
6039b2c
Avoid empty strings as tags in legacy format conversion
mbsantiago Nov 10, 2025
69921f2
Add GreedyAffinityMatching as an alternative to optimal affinity matc…
mbsantiago Nov 10, 2025
76503fb
Fix order of config merge
mbsantiago Nov 12, 2025
960b9a9
Fix legacy import to use reproducible UUIDs
mbsantiago Nov 16, 2025
a4498cf
Add functional versions of metric and plotting utils
mbsantiago Nov 16, 2025
bdb9e18
Add explicit kwarg name to _freq_to_index to avoid confusion
mbsantiago Nov 16, 2025
dbd2d30
save predictions as individual nc files for speed
mbsantiago Nov 19, 2025
4ecbc2b
Add function to facilitate task evaluation
mbsantiago Nov 22, 2025
16c401b
Add method to compute attention weights
mbsantiago Nov 22, 2025
7336638
Add average precision computation to pr curves if needed
mbsantiago Nov 22, 2025
202c6cb
Fix tests
mbsantiago Nov 28, 2025
a4a5a10
Remove torch version restrictions
mbsantiago Nov 28, 2025
72278d7
Upgrade soundevent to 2.10
mbsantiago Dec 8, 2025
9c72537
Add parquet format for outputs
mbsantiago Dec 8, 2025
2563f26
Update type hints to python 3.10
mbsantiago Dec 8, 2025
113f438
Run lint fixes
mbsantiago Dec 8, 2025
f71fe0c
Using matching and affinity functions from soundevent
mbsantiago Dec 12, 2025
750f9e4
Make sure threshold is used
mbsantiago Dec 12, 2025
531ff69
Cleanup evaluate
mbsantiago Dec 12, 2025
0adb58e
Run formatter
mbsantiago Dec 12, 2025
4509602
Run automated fixes
mbsantiago Dec 12, 2025
8313fe1
Minor formatting
mbsantiago Mar 7, 2026
cce1b49
Run formatting
mbsantiago Mar 8, 2026
d52e988
Fix type errors
mbsantiago Mar 8, 2026
c9bcaeb
Ignore notebooks for now
mbsantiago Mar 8, 2026
0b34400
Ignore scripts for now
mbsantiago Mar 8, 2026
6812e1c
Update default detection class config
mbsantiago Mar 8, 2026
b8b8a68
Add gradio as optional group
mbsantiago Mar 8, 2026
54605ef
Add blocks and detector tests
mbsantiago Mar 8, 2026
e393709
Add interfaces for encoder/decoder/bottleneck
mbsantiago Mar 8, 2026
652d076
Add backbone registry
mbsantiago Mar 8, 2026
f2d5088
Run formatter
mbsantiago Mar 8, 2026
45e3cf1
Modify example config to add name
mbsantiago Mar 8, 2026
4207661
Add test for backbones
mbsantiago Mar 8, 2026
ef3348d
Update model docstrings
mbsantiago Mar 8, 2026
ce952e3
Update audio module docstrings
mbsantiago Mar 8, 2026
bfc88a4
Update audio loader docstrings
mbsantiago Mar 8, 2026
46c0296
Add test for preprocessing
mbsantiago Mar 8, 2026
0d590a2
Update tests
mbsantiago Mar 8, 2026
3c337a0
Add architecture document
mbsantiago Mar 11, 2026
4b7d23a
Create data annotation loader registry
mbsantiago Mar 15, 2026
e050348
Remove deprecated types
mbsantiago Mar 15, 2026
197cc38
Add tests for registry
mbsantiago Mar 15, 2026
47f418a
Add test for annotated dataset load function
mbsantiago Mar 15, 2026
038d58e
Add config for dynamic imports, and tests
mbsantiago Mar 16, 2026
8ac4f4c
Add dynamic imports to existing registries
mbsantiago Mar 16, 2026
1a7c0b4
Removing legacy types
mbsantiago Mar 17, 2026
65bd0dc
Restructure model config
mbsantiago Mar 17, 2026
56f6aff
use train config in training module
mbsantiago Mar 17, 2026
615c7d7
Added a full test of training and saving
mbsantiago Mar 17, 2026
feee2bd
Add scheduler and optimizer module
mbsantiago Mar 17, 2026
3b47c68
Update api_v2
mbsantiago Mar 17, 2026
c226dc3
Add outputs module
mbsantiago Mar 17, 2026
751be53
Moving types around to each submodule
mbsantiago Mar 18, 2026
573d8e3
Ran formatter
mbsantiago Mar 18, 2026
d56b9f0
Remove num_worker from config
mbsantiago Mar 18, 2026
31d4f92
reformat
mbsantiago Mar 18, 2026
daff74f
Moved decoding to outputs
mbsantiago Mar 18, 2026
b3af707
Create EvaluateTaskProtocol
mbsantiago Mar 18, 2026
45ae15e
Cleanup postprocessing
mbsantiago Mar 18, 2026
7b1cb40
Add a few clip and detection transforms for outputs
mbsantiago Mar 18, 2026
6276a88
Add roundtrip test for encoding decoding geometries
mbsantiago Mar 18, 2026
0bf809e
Exported types at module level
mbsantiago Mar 18, 2026
9fa703b
Allow training on existing model
mbsantiago Mar 18, 2026
a332c5c
Allow loading predictions in different formats
mbsantiago Mar 18, 2026
8e35956
Create save evaluation results
mbsantiago Mar 18, 2026
ebe7e13
Allow building new head
mbsantiago Mar 18, 2026
f9056eb
Ensure config is source of truth
mbsantiago Mar 18, 2026
bf5b880
Polish evaluate and train CLI
mbsantiago Mar 18, 2026
22a3d18
Move the logging config out of the train/eval configs
mbsantiago Mar 18, 2026
2f03abe
Remove stale load functions
mbsantiago Mar 18, 2026
f0af5dd
Change inference command to predict
mbsantiago Mar 18, 2026
0163a57
Expanded cli tests
mbsantiago Mar 18, 2026
652670b
Name changes
mbsantiago Mar 18, 2026
99b9e55
Add extra and strict arguments to load config functions, migrate exam…
mbsantiago Mar 18, 2026
23ac619
Add option to override targets when loading the model config
mbsantiago Mar 18, 2026
91806aa
Update default scheduler params
mbsantiago Mar 18, 2026
0d90cb5
Create duplicate preprocessor for data input pipeline
mbsantiago Mar 19, 2026
fb3dc3e
Ensure preprocessor is in CPU
mbsantiago Mar 19, 2026
32d8c4a
Create separate preproc/postproc/target instances for model in api
mbsantiago Mar 19, 2026
875751d
Add save last config to checkpoint
mbsantiago Mar 19, 2026
b8acd86
By default only save the last checkpoint
mbsantiago Mar 19, 2026
a1fad6d
Add test for checkpointing
mbsantiago Mar 19, 2026
13a31d9
Do not sync with model in loading from checkpoint otherwise device clash
mbsantiago Mar 19, 2026
5a14b29
Do not crash on failure to plot
mbsantiago Mar 19, 2026
78ede31
Remove stale scripts
mbsantiago Mar 19, 2026
daf18b9
Change name of ims folder to assets.
mbsantiago Mar 19, 2026
00430c8
Remove dvc stuff
mbsantiago Mar 19, 2026
26cbe00
Update image path
mbsantiago Mar 19, 2026
5d92f3a
Remove stale pylintrc
mbsantiago Mar 19, 2026
9ec2f1a
Add audio dir to data cli command
mbsantiago Mar 28, 2026
7277151
Start cli docs
mbsantiago Mar 28, 2026
e4bbde9
Better cli docs
mbsantiago Mar 28, 2026
dfe19c6
Add detection threshold override option to postprocessor
mbsantiago Mar 28, 2026
b253a54
Use detection threshold use to API and CLI
mbsantiago Mar 28, 2026
8e33473
Update docs with detection threshold
mbsantiago Mar 28, 2026
c5b2446
Add tests for detection threshold
mbsantiago Mar 28, 2026
ebc1f57
Improved home doc page and moved faq to docs
mbsantiago Mar 28, 2026
3074980
More extensive overview of cli reference
mbsantiago Mar 28, 2026
42d6a09
Add dev docs
mbsantiago Mar 28, 2026
d2d804f
Create basic tutorial files, WIP
mbsantiago Mar 28, 2026
67bb66d
Incorporate previous docs into new structure
mbsantiago Mar 28, 2026
548cd36
Add source filtering to dataset loading
mbsantiago Mar 28, 2026
716b3a3
Allow enabling/disabling filtering and transforms during data loading
mbsantiago Mar 28, 2026
2b235e2
Separate targets and ROI
mbsantiago Mar 29, 2026
591d4f4
Update docs on roi separation
mbsantiago Mar 29, 2026
6d09133
Minor fixes
mbsantiago Mar 29, 2026
c240562
Make sure api_v2 loads fast
mbsantiago Mar 29, 2026
e80fe86
Mark some tests as slow for quicker feedback
mbsantiago Mar 29, 2026
c8dd415
Add conditions for clips and recordings
mbsantiago Apr 3, 2026
e04d868
Add clip annotation filtering to data loading
mbsantiago Apr 3, 2026
0096113
Improve test suite for conditions
mbsantiago Apr 3, 2026
c67d9cb
Sort summary by class name
mbsantiago Apr 3, 2026
1579bbc
Add csv list format
mbsantiago Apr 4, 2026
da113ea
Add path_in_list condition
mbsantiago Apr 4, 2026
4303d4e
Fix logging imports
mbsantiago Apr 23, 2026
a5fdf43
Minor fixes
mbsantiago Apr 24, 2026
f909e74
Fix: operators were inverted
mbsantiago Apr 29, 2026
9635a85
docs: align docs entry points with current workflows
mbsantiago Apr 30, 2026
9dec35b
docs: expand core user workflow tutorials
mbsantiago Apr 30, 2026
3007168
docs: add task guides and API/config references
mbsantiago Apr 30, 2026
a2f2a2d
docs: add legacy workflow and migration guidance
mbsantiago Apr 30, 2026
9da05c1
Merge branch 'train' into doc
mbsantiago Apr 30, 2026
f82ec21
docs: clarify train base-dir option
mbsantiago Apr 30, 2026
d7e61cc
feat(plotting): add size heatmap label plotting
mbsantiago May 4, 2026
44f9870
fix: have 0 default workers for eval
mbsantiago May 4, 2026
ae4f742
Modify max epochs with override before logging
mbsantiago May 4, 2026
e330536
update gitignore
mbsantiago May 4, 2026
57236fc
refactor: decouple model metadata from target configs
mbsantiago May 4, 2026
eec126a
fix: align cli and helpers with model refactor
mbsantiago May 4, 2026
20a7c05
feat: support target config roundtrips
mbsantiago May 4, 2026
aa36df6
feat: persist target configs in checkpoints
mbsantiago May 4, 2026
c27e7f9
fix: ensure checkpoint is path
mbsantiago May 4, 2026
7a10b7f
refactor: remove aggregate app config
mbsantiago May 4, 2026
cbe428f
Set default num workers to 0
mbsantiago May 4, 2026
7a46fa0
Use base config for import config
mbsantiago May 4, 2026
2d0b810
Log scheduler and optimizer ocnfigs
mbsantiago May 4, 2026
7d416e0
Set model mode during training
mbsantiago May 4, 2026
75e52cc
fix: keep checkpoint targets immutable
mbsantiago May 5, 2026
7b26997
feat: add checkpoint finetuning workflow
mbsantiago May 5, 2026
5a97471
feat: log training provenance artifacts
mbsantiago May 5, 2026
f5afa98
feat: load checkpoints from Hugging Face
mbsantiago May 5, 2026
5526ac9
Remove stale dependencies
mbsantiago May 5, 2026
d83f801
perf: defer heavy api imports
mbsantiago May 5, 2026
8491808
feat: streamline bundled checkpoint handling
mbsantiago May 5, 2026
31054f6
fix: load checkpoints on cpu
mbsantiago May 5, 2026
7c05fb8
feat: default to bundled checkpoint
mbsantiago May 6, 2026
999dc93
docs: improve API and CLI reference docs
mbsantiago May 6, 2026
a27d1bb
refactor: derive training config from the model
mbsantiago May 6, 2026
2008c80
refactor: replace abstract model types with protocols
mbsantiago May 6, 2026
5cc5767
fix: rename detector heads and refresh bundled checkpoint
mbsantiago May 6, 2026
b4efcfc
docs: refresh api reference guidance
mbsantiago May 6, 2026
831925b
feat: expose BatDetect2API at package root
mbsantiago May 6, 2026
6587c6c
feat: rename CLI inference command to process
mbsantiago May 6, 2026
855a798
docs: refine CLI command docstrings
mbsantiago May 6, 2026
69d8e2d
docs: polish README overview and links
mbsantiago May 6, 2026
ce69757
ci: add GitHub workflows and release helpers
mbsantiago May 6, 2026
b0f85b9
fix: resolve remaining type check issues
mbsantiago May 6, 2026
105384d
remove documentation plan
mbsantiago May 6, 2026
c4f759e
feat: restore legacy batdetect2 process outputs
mbsantiago May 6, 2026
d358664
fix: normalize shared relative output paths
mbsantiago May 6, 2026
ec4fa6c
feat: support configurable batdetect2 class labels
mbsantiago May 6, 2026
ca0f0d9
docs: polish migration guide wording
mbsantiago May 6, 2026
df9f21b
docs: expand legacy cli and api pages
mbsantiago May 6, 2026
fbb48c4
docs: polish docs entry points and metadata
mbsantiago May 6, 2026
2da6a95
docs: remove obsolete legacy planning pages
mbsantiago May 6, 2026
87d7cc7
docs: refresh FAQ and migration guidance
mbsantiago May 6, 2026
cd962fe
fix: preserve directory-relative output paths
mbsantiago May 6, 2026
94746b5
fix: defer model protocol type imports
mbsantiago May 6, 2026
214fbdb
docs: expand inference tutorial examples and model selection guidance
mbsantiago May 7, 2026
5760b6e
docs: expand training tutorial and config guidance
mbsantiago May 7, 2026
7a0f5c4
docs: refresh evaluation tutorial outputs and setup
mbsantiago May 7, 2026
f909da5
docs: expand python workflow tutorial
mbsantiago May 7, 2026
f7d4812
chore: update beta release notes and silence noisy warnings
mbsantiago May 7, 2026
7b4101e
Merge remote-tracking branch 'origin/main' into train
mbsantiago May 7, 2026
0b410d9
Use all dev/optional dependencies in CI
mbsantiago May 7, 2026
48922b5
fix: preserve CLI output defaults with outputs config
mbsantiago May 7, 2026
7cdb622
fix: Minor typo
mbsantiago May 7, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
[bumpversion]
current_version = 1.3.1
current_version = 1.1.1
commit = True
tag = True

[bumpversion:file:batdetect2/__init__.py]
[bumpversion:file:src/batdetect2/__init__.py]

[bumpversion:file:pyproject.toml]

[bumpversion:file:docs/source/conf.py]
79 changes: 79 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: CI

on:
pull_request:
push:
branches:
- main

concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
checks:
name: Checks
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install just
uses: taiki-e/install-action@just

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock

- name: Install dependencies
run: uv sync --all-extras --all-groups

- name: Run formatting, lint, and type checks
run: just check

tests:
name: Tests (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Install just
uses: taiki-e/install-action@just

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock

- name: Install dependencies
run: uv sync --all-extras --all-groups

- name: Run test suite
run: just test
69 changes: 69 additions & 0 deletions .github/workflows/docs-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Docs Pages

on:
push:
branches:
- main
workflow_dispatch:

permissions:
contents: read

concurrency:
group: docs-pages
cancel-in-progress: true

jobs:
build:
name: Build Docs
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install just
uses: taiki-e/install-action@just

- name: Configure GitHub Pages
uses: actions/configure-pages@v5

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock

- name: Install dependencies
run: uv sync --all-extras --all-groups

- name: Build docs
run: just check-docs

- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v4
with:
path: docs/build

deploy:
name: Deploy Docs
needs: build
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
70 changes: 70 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Publish PyPI

on:
release:
types:
- published

permissions:
contents: read

concurrency:
group: publish-pypi
cancel-in-progress: false

jobs:
build:
name: Build Distributions
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install just
uses: taiki-e/install-action@just

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
cache-dependency-glob: |
pyproject.toml
uv.lock

- name: Install dependencies
run: just install-dev

- name: Build distributions
run: just build-dist

- name: Upload distributions
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

publish:
name: Publish to PyPI
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
environment:
name: pypi
url: https://pypi.org/p/batdetect2

steps:
- name: Download distributions
uses: actions/download-artifact@v5
with:
name: release-dists
path: dist/

- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
29 changes: 0 additions & 29 deletions .github/workflows/python-package.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/python-publish.yml

This file was deleted.

28 changes: 26 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ cover/

# Sphinx documentation
docs/_build/
docs/build/

# PyBuilder
.pybuilder/
Expand Down Expand Up @@ -95,8 +96,15 @@ dmypy.json
*.json
plots/*

!example_data/anns/*.json

# Model experiments
experiments/*
DvcLiveLogger/checkpoints
logs/
mlruns/
/outputs/
notebooks/lightning_logs

# Jupiter notebooks
.virtual_documents
Expand All @@ -105,8 +113,24 @@ experiments/*

# DO Include
!batdetect2_notebook.ipynb
!batdetect2/models/*.pth.tar
!src/batdetect2/models/checkpoints/*.pth.tar
!tests/data/*.wav
!notebooks/*.ipynb
!tests/data/**/*.wav
notebooks/lightning_logs
.aider*

# Intermediate artifacts
example_data/preprocessed

# Dev notebooks
notebooks/tmp
/tmp
/.agents/skills
/notebooks
/AGENTS.md
/scripts
/todo.md

# Assets
!assets/*
/models
5 changes: 0 additions & 5 deletions .pylintrc

This file was deleted.

Loading
Loading