From 232cb838f65e2fe4ee929e838a495708242a18b0 Mon Sep 17 00:00:00 2001 From: zsloan Date: Mon, 2 May 2022 16:06:49 -0500 Subject: Change formatting again --- issues/case-attr-edit-error.gmi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'issues') diff --git a/issues/case-attr-edit-error.gmi b/issues/case-attr-edit-error.gmi index 2e73fe5..5a7e845 100644 --- a/issues/case-attr-edit-error.gmi +++ b/issues/case-attr-edit-error.gmi @@ -7,13 +7,13 @@ There are several issues I've noticed: * This is the most confusing and is a bit hard to explain without directly showing, but I've identified what seems to be causing the problem (though I can't find why in the code). Attempts to fix this via editing didn't work until I figured out the apparent cause, but my temporary "fix" just involve removing the problematic case attribute values. -An image showing one of the diffs is linked here: -=> /pictures/diffs_1.png + An image showing one of the diffs is linked here: + => /pictures/diffs_1.png -As can be seen, all the case attributes for some samples were set to 2018.08. + As can be seen, all the case attributes for some samples were set to 2018.08. -The cause of this issue seems to be either "M13" or "M14" being the case attribute value for the "Date Geno" Case Attribute (which can also be seen in the figure). After a while, I realized that this is apparently because "M13" and "M14" are both parts of strain names (for example "UM13988"). -I was able to temporarily "fix" the issue by removing all M13s and M14s. But I have no idea *why* this is happening. At some point in the code it must be searching for the casee attribute value across thee entire CSV row, but I can't find where that's happening (or why it results in the same case attribute value being duplicated across all case attributes for that row). + The cause of this issue seems to be either "M13" or "M14" being the case attribute value for the "Date Geno" Case Attribute (which can also be seen in the figure). After a while, I realized that this is apparently because "M13" and "M14" are both parts of strain names (for example "UM13988"). + I was able to temporarily "fix" the issue by removing all M13s and M14s. But I have no idea *why* this is happening. At some point in the code it must be searching for the casee attribute value across thee entire CSV row, but I can't find where that's happening (or why it results in the same case attribute value being duplicated across all case attributes for that row). * The "Tx" attribute (an attribute that exists twice in the CaseAttribute table and requires an ID in the CSV file) was throwing an error related to not having an ID, even though the ID was included in the CSV file. This is the relevant part of the code (where _id isn't set and it throws an error about "Tx" not being a unique Name) - https://github.com/genenetwork/genenetwork3/blob/65adda3923760252dd1dc94e8b5c894310885a69/gn3/db/sample_data.py#L176-L198 -- cgit v1.2.3