File tree Expand file tree Collapse file tree 6 files changed +14
-78
lines changed
Expand file tree Collapse file tree 6 files changed +14
-78
lines changed Original file line number Diff line number Diff line change 33from .configuration import ConfigurationAdmin
44from .exported_annotation import ExportedAnnotationFileAdmin
55from .grts_cells import GRTSCellsAdmin
6- from .image import ImageAdmin
76from .nabat .admin import (
87 NABatCompressedSpectrogramAdmin ,
98 NABatRecordingAdmin ,
2120
2221__all__ = [
2322 'AnnotationsAdmin' ,
24- 'ImageAdmin' ,
2523 'RecordingAdmin' ,
2624 'SpectrogramAdmin' ,
2725 'SequenceAnnotationsAdmin' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ from django .db import migrations
2+
3+
4+ class Migration (migrations .Migration ):
5+
6+ dependencies = [
7+ ('core' , '0023_recordingtag_recording_tags_and_more' ),
8+ ]
9+
10+ operations = [
11+ migrations .DeleteModel (
12+ name = 'Image' ,
13+ ),
14+ ]
Original file line number Diff line number Diff line change 33from .configuration import Configuration
44from .exported_file import ExportedAnnotationFile
55from .grts_cells import GRTSCells
6- from .image import Image
76from .processing_task import ProcessingTask , ProcessingTaskType
87from .recording import Recording , RecordingTag
98from .recording_annotation import RecordingAnnotation
1514
1615__all__ = [
1716 'Annotations' ,
18- 'Image' ,
1917 'Recording' ,
2018 'RecordingTag' ,
2119 'RecordingAnnotationStatus' ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 22import os
33import tempfile
44
5- from PIL import Image
65from celery import shared_task
76from django .contrib .contenttypes .models import ContentType
87from django .core .files import File
2221logger = logging .getLogger ('NABatDataRetrieval' )
2322
2423
25- @shared_task
26- def image_compute_checksum (image_id : int ):
27- image = Image .objects .get (pk = image_id )
28- image .compute_checksum ()
29- image .save ()
30-
31-
3224@shared_task
3325def recording_compute_spectrogram (recording_id : int ):
3426 recording = Recording .objects .get (pk = recording_id )
You can’t perform that action at this time.
0 commit comments