Skip to content

Commit 2060b26

Browse files
committed
-> Drop multi-organ category
1 parent 08e8a54 commit 2060b26

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

etl/etl.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ def load_display_vals(filename):
715715
attr_vals_file = open(filename, "r")
716716

717717
for line in csv_reader(attr_vals_file):
718-
if 'display_value' in line:
718+
if 'Raw' in line:
719719
continue
720720
if line[0] not in display_vals:
721721
display_vals[line[0]] = {
@@ -800,7 +800,11 @@ def main():
800800
if len(args.display_vals):
801801
dvals = load_display_vals(args.display_vals)
802802
for attr in dvals:
803-
update_display_values(Attribute.objects.get(name=attr), dvals[attr]['vals'])
803+
try:
804+
attr_obj = Attribute.objects.get(name=attr)
805+
update_display_values(attr_obj, dvals[attr]['vals'])
806+
except ObjectDoesNotExist as e:
807+
print("[WARNING] Attr {} not found - display values will not be updated! Rerun ETL if this is not expected.".format(attr))
804808

805809
# Solr commands are automatically output for full ETL; the step below is for outside-of-ETL executions
806810
if len(ETL_CONFIG):

idc/views.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ def landing_page(request):
9191
"Mesothelium",
9292
"Chest-Abdomen-Pelvis, Leg, TSpine",
9393
"Abdomen, Arm, Bladder, Chest, Head-Neck, Kidney, Leg, Retroperitoneum, Stomach, Uterus",
94-
"Blood, Bone"
94+
"Blood, Bone",
95+
"Esophagus, Lung, Pancreas, Thymus"
9596
]
9697

9798
for collection in collex:

0 commit comments

Comments
 (0)