-
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.
* Simplify prefix parsing for multi-domain projects Co-authored-by: Jake Wagoner <[email protected]> * Simplify prefix parsing for multi-domain projects Co-authored-by: Jake Wagoner <[email protected]> * Don't skip over other prefixes completely; objects should still be made if there is a subject to match * Fix prefix parsing again * Fix lint & type tests * Remove old layer upon spawning a task rerun * Fix missing particle files after grooming (prevent cascading deletions) * Fix number of particles not working on multi domain cases * Lint / Type fixes * Fix only one ReconstructedSample appearing; both were created but were associated with the same particles object * Move Subject `num_domains` to serializer instead of SWCC representation Co-authored-by: Jake Wagoner <[email protected]> * Add reset function for web client state * Fix groom and optimization not saving * Update analysis mean shape to be list for multidomain * Fix lint and type errors * Make num_domains optional for swcc Subject (fixes uploads) * Use lists for store vars relevant to analysis files * Fix import order in swcc project.py * Only use tiny_test datasets in upload_download congruence test (faster and more reliable results) * Lint fix: Prefer single quotes * Swap "alignment" for "constraints" in expected key prefixes * Update data structures for multi-domain in Group comparison Co-authored-by: Jake Wagoner <[email protected]> * Fix cache labeling for overlapping shapes * Modify num_domains serialization for Subjects: get unique values for anatomy_type * Don't Exclude "_file" from anatomy names * Fix anatomy_type/suffix comparison in Project.get_download_paths() Co-authored-by: Jake Wagoner <[email protected]> --------- Co-authored-by: Jake Wagoner <[email protected]>
- Loading branch information
Showing
22 changed files
with
575 additions
and
290 deletions.
There are no files selected for viewing
91 changes: 91 additions & 0 deletions
91
shapeworks_cloud/core/migrations/0035_protect_from_cascading_deletion.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,91 @@ | ||
# Generated by Django 3.2.20 on 2023-09-10 04:58 | ||
|
||
from django.conf import settings | ||
from django.db import migrations, models | ||
import django.db.models.deletion | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
migrations.swappable_dependency(settings.AUTH_USER_MODEL), | ||
('core', '0034_good_bad_particles'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='constraints', | ||
name='optimized_particles', | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name='constraints', | ||
to='core.optimizedparticles', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='dataset', | ||
name='creator', | ||
field=models.ForeignKey( | ||
null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='groomedmesh', | ||
name='mesh', | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name='groomed', | ||
to='core.mesh', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='groomedsegmentation', | ||
name='segmentation', | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name='groomed', | ||
to='core.segmentation', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='optimizedparticles', | ||
name='groomed_mesh', | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name='+', | ||
to='core.groomedmesh', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='optimizedparticles', | ||
name='groomed_segmentation', | ||
field=models.ForeignKey( | ||
blank=True, | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name='+', | ||
to='core.groomedsegmentation', | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='project', | ||
name='creator', | ||
field=models.ForeignKey( | ||
null=True, on_delete=django.db.models.deletion.SET_NULL, to=settings.AUTH_USER_MODEL | ||
), | ||
), | ||
migrations.AlterField( | ||
model_name='reconstructedsample', | ||
name='particles', | ||
field=models.ForeignKey( | ||
null=True, | ||
on_delete=django.db.models.deletion.SET_NULL, | ||
related_name='reconstructed_samples', | ||
to='core.optimizedparticles', | ||
), | ||
), | ||
] |
39 changes: 39 additions & 0 deletions
39
shapeworks_cloud/core/migrations/0036_analysis_multi_domain.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,39 @@ | ||
# Generated by Django 3.2.21 on 2023-09-25 20:42 | ||
|
||
from django.db import migrations, models | ||
import s3_file_field.fields | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
('core', '0035_protect_from_cascading_deletion'), | ||
] | ||
|
||
operations = [ | ||
migrations.CreateModel( | ||
name='CachedAnalysisMeanShape', | ||
fields=[ | ||
( | ||
'id', | ||
models.AutoField( | ||
auto_created=True, primary_key=True, serialize=False, verbose_name='ID' | ||
), | ||
), | ||
('file', s3_file_field.fields.S3FileField()), | ||
('particles', s3_file_field.fields.S3FileField(null=True)), | ||
], | ||
), | ||
migrations.RemoveField( | ||
model_name='cachedanalysis', | ||
name='mean_particles', | ||
), | ||
migrations.RemoveField( | ||
model_name='cachedanalysis', | ||
name='mean_shape', | ||
), | ||
migrations.AddField( | ||
model_name='cachedanalysis', | ||
name='mean_shapes', | ||
field=models.ManyToManyField(to='core.CachedAnalysisMeanShape'), | ||
), | ||
] |
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
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
Oops, something went wrong.