Skip to content

Commit

Permalink
feat: added code prefix to experiment model
Browse files Browse the repository at this point in the history
  • Loading branch information
kaliif committed Sep 5, 2024
1 parent 52fecaf commit a49db62
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions viewer/migrations/0062_experiment_code_prefix.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 3.2.25 on 2024-09-05 15:35

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('viewer', '0061_auto_20240905_1500'),
]

operations = [
migrations.AddField(
model_name='experiment',
name='code_prefix',
field=models.TextField(null=True),
),
]
1 change: 1 addition & 0 deletions viewer/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ class Experiment(models.Model):
type = models.PositiveSmallIntegerField(null=True)
pdb_sha256 = models.TextField(null=True)
prefix_tooltip = models.TextField(null=True)
code_prefix = models.TextField(null=True)
compounds = models.ManyToManyField(
"Compound",
through="ExperimentCompound",
Expand Down
1 change: 1 addition & 0 deletions viewer/target_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ def process_experiment(
"cif_info": str(self._get_final_path(cif_info)),
"map_info": map_info_paths,
"prefix_tooltip": prefix_tooltip,
"code_prefix": code_prefix,
# this doesn't seem to be present
# pdb_sha256:
}
Expand Down

0 comments on commit a49db62

Please sign in to comment.