-
Notifications
You must be signed in to change notification settings - Fork 0
initial nabat models/api script #122
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
Conversation
…on to tasks, update NABat spectro generating process
* renames acoustic batch to recording based on conversations * add migrations
Add additional settings to the admin page
Updated queries: SoftwareId is a Kitware SoftwareId. Query VetQuery { query PresignedUrlQuery { |
Add in new query to get existing annotations and match them up with any thing we currently have:
|
if not request.user.is_authenticated or not request.user.is_superuser: | ||
return JsonResponse({'error': 'Permission denied'}, status=403) | ||
existing_task = ProcessingTask.objects.filter( | ||
metadata__type='Updating Species', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any value in using an enum for metadata.type
at this point? Maybe at least for this one we can use a variable for the string 'Updating Species'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implment this as an enum instead of.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can the commented out code here be removed?
Co-authored-by: Michael Nagler <[email protected]>
…_API_URL environment value
@BryonLewis I'm going to pull your most recent changes and do some functional testing. Meanwhile there are a couple of ESLint warnings over in the "Files Changed" tab. (AnnotationEditor.vue and NABatSpectrogram.vue) I'm not sure why the CI test is passing but I'm seeing those errors via github |
Yeah they don't fail because they are just warnings, not errors. I just made a small push to resolve those issues. |
resolves #121
resolves #147
resolves #148
resolves #143
NOTE: Use the ./scripts/USGS/sampleURL.txt for testing, just inject your apiToken.
acoustic_batch_initialize
that does:ApiToken
andBatchId
it requests some basic information about the NaBat file for the batchIdAcousticBatch
using the metadata that we have/nabat/{recordingId}/?surveyEventId={surveyEventId}&apiToken={apiToken}
/nabat/spectrogram/{id}
route to display the spectrogramTODO:
Client Side
acoustic_batch/${id}/spectrogram
endpoint for getting the spectrogram dataacoustic_batch/${id}/spectrogram/compressed
endpoint for getting the compressed spectrogram dataBack-End
Clean up compressed spectrogram generation and prediction code. It's a bit duplicated in locations and could be improved.
20240404 TODO:
20250408 TODO:
20250411 TODO: