-
Notifications
You must be signed in to change notification settings - Fork 1
Species suggestion Backend #467
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
Merged
Merged
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d5d1ef5
modify grts_cell to sample_frame_id, the real name
BryonLewis 8705dcb
add species range model, management loading command, admin interface
BryonLewis 4a9b595
GET species support for recordingId, GRTSCell and Sample_frame_Id for…
BryonLewis 9291c8d
mark geojson file as generated to remove line count
BryonLewis c844931
mark geojson file as vendored to remove line count
BryonLewis 37e1802
add category label back to Species results
BryonLewis 4f2b7a9
Update .gitattributes
BryonLewis 3b1e2fd
Update bats_ai/core/management/commands/load_species_geojson.py
BryonLewis 6db3150
swap to tuples to lists for admin
BryonLewis b886db0
prevent nullable for SpeciesRange.source_feature_id field
BryonLewis 7dfd479
update GEOJSON location, add loading to migration
BryonLewis 14c969e
default to CONUS_SAMPLE_FRAME_ID=14 for unknown sample_frame_ids
BryonLewis 1c6cae4
cleanup species view
BryonLewis 5cfc201
pathlib for DEFAULT_GEOJSON
BryonLewis 9bb636a
rename species.geojson to species-ranges.geojson
BryonLewis 39bbdd3
Update bats_ai/core/management/commands/load_species_geojson.py
BryonLewis fadceef
allow more failing errors in load species range
BryonLewis a95324b
remove unecessary pk, and default to false if geom exists and overlap…
BryonLewis b048a59
in_range output comments, species-range ingestion description
BryonLewis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| client/package-lock.json linguist-generated=true | ||
| bats_ai/core/data/species.geojson linguist-vendored=true | ||
| uv.lock linguist-generated=true | ||
| assets/example.wav filter=lfs diff=lfs merge=lfs -text | ||
| assets/model.mobilenet.onnx filter=lfs diff=lfs merge=lfs -text | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| from __future__ import annotations | ||
|
|
||
| from django.contrib import admin | ||
| from django.contrib.gis.admin import GISModelAdmin | ||
|
|
||
| from bats_ai.core.models import SpeciesRange | ||
|
|
||
|
|
||
| @admin.register(SpeciesRange) | ||
| class SpeciesRangeAdmin(GISModelAdmin): | ||
| list_display = [ | ||
| "id", | ||
| "species", | ||
| "source_feature_id", | ||
| ] | ||
| list_select_related = ["species"] | ||
| search_fields = [ | ||
| "species__species_code", | ||
| "species__common_name", | ||
| "source_feature_id", | ||
| ] | ||
| autocomplete_fields = ["species"] | ||
| ordering = ["species__species_code"] |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.