-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e0c2997
commit 1c480d5
Showing
12 changed files
with
283 additions
and
73 deletions.
There are no files selected for viewing
This file contains 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 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,17 @@ | ||
# Generated by Django 4.2.13 on 2024-07-09 17:18 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("ingest", "0001_initial"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name="accession", | ||
name="is_cog", | ||
field=models.BooleanField(blank=True, null=True), | ||
), | ||
] |
31 changes: 31 additions & 0 deletions
31
isic/ingest/migrations/0003_accession_accession_is_cog_mosaic.py
This file contains 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,31 @@ | ||
# Generated by Django 4.2.13 on 2024-07-11 15:22 | ||
|
||
from django.db import migrations, models | ||
import isic_metadata.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("ingest", "0002_accession_is_cog"), | ||
] | ||
|
||
operations = [ | ||
migrations.AddConstraint( | ||
model_name="accession", | ||
constraint=models.CheckConstraint( | ||
check=models.Q( | ||
("image_type__isnull", True), | ||
models.Q( | ||
( | ||
"image_type", | ||
isic_metadata.fields.ImageTypeEnum["rcm_mosaic"], | ||
), | ||
_negated=True, | ||
), | ||
("is_cog", True), | ||
_connector="OR", | ||
), | ||
name="accession_is_cog_mosaic", | ||
), | ||
), | ||
] |
This file contains 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 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,15 +1,15 @@ | ||
{% extends 'core/base.html' %} | ||
{% load static %} | ||
|
||
{% load static %} | ||
|
||
{% block content %} | ||
<div id="image" style="width:100%; height:800px;"></div> | ||
|
||
<div id="image" style="width:100%; height:400px;"></div> | ||
|
||
<script type="module" src="{% static 'core/dist/cog.js' %}"></script> | ||
|
||
<script type="text/javascript"> | ||
initializeCogViewer('{{ accession.blob.url|safe }}'); | ||
</script> | ||
<script src="{% static 'core/dist/cog.js' %}"></script> | ||
|
||
<script type="text/javascript"> | ||
initializeCogViewer('{{ accession.blob.url|safe }}', | ||
{{ accession.width }}, | ||
{{ accession.height }}); | ||
</script> | ||
{% endblock %} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.