| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
./manage.py migrate
./manage.py createsuperuser
./manage.py loaddata speciesOpen the Run and Debug panel (Ctrl+Shift+D) and select a launch configuration:
Run the full test suite from a terminal: tox
Auto-format code: tox -e format
Run and debug individual tests from the Testing panel (Ctrl+Shift+;).
After changes to the Dockerfile, Docker Compose files, or devcontainer.json, run Dev Containers: Rebuild Container from the Command Palette (Ctrl+Shift+P).
For dependency changes in pyproject.toml, just run uv sync --all-extras --all-groups.
The importRecordings management command allows you to bulk import WAV files from a directory. It will:
Basic usage with Docker Compose (with bind mount):
./manage.py importRecordings /dataWith options:
./manage.py importRecordings /data \
--owner username \
--public \
--limit 10Options:
It's recommended that you use pre-commit to provide additional linting on any commit you make. See the installation instructions for your OS/platform to install.
After you have the software installed, run pre-commit install on the command line. Now every time you commit to this project's code base the linter procedures will automatically run over the changed files.
To install the linting Python dependencies, run:
pip install -r pre-commitTo run pre-commit on files preemptively from the command line use:
git add .
pre-commit run
# or
pre-commit run --all-filesSee .pre-commit-config.yaml for a list of configured linters and fixers.
To add pre-commit as a Git hook, run the following:
pre-commit installThis will run the pre-commit update prior to finalizing a local commit. This is preferred because once the commit is created locally, you will need to rebase or otherwise rewrite the commit to make adjustments if done after the fact.
Lastly, the GitLab CI/CD infrastructure runs the same pre-commit configuration on all pipelines for new MRs. The automated checks in GitLab are optional, but it is highly recommended to perform these checks locally prior to pushing new commits.
Spectrogram processing tasks honor DJANGO_BATAI_SAVE_SPECTROGRAM_CONTOURS environment variable. Set to False by default so workers skip contour extraction (less DB storage space); set to True if you need contours in the UI (UI for contours currently disabled due to performance)
By default (DJANGO_BATAI_USE_ORIGINAL_SR_SPECTROGRAMS=true), BatBot's .origsr.jpg outputs are stored as the uncompressed and compressed spectrogram images (and related masks/waveplots). Set DJANGO_BATAI_USE_ORIGINAL_SR_SPECTROGRAMS=false to use resampled images instead.
The suggested species for a given location are determined by spatial data stored in /bats_ai/core/data/species-range.geojson. As part of the default migrations this data is ingested into the SpeciesRange database and used for determining suggested species based on a Recording (internal GRTS_Cell_ID and sample_frame_id). The if the same species is found multiple times in the geojson the last geometry will be used. In the future if species-ranges change the managment command of ./manage.py load_species_geojson [optional Geojson Path] can be used to reload the default species-range.geojson if no path is provided or a new one and will update/replace any previous data.
| Back | FazBrowse Home | New Git URL |