informatics-isi-edu / synspy

Synaptic segmentation and visualization with fluorescence microscopy
BSD 3-Clause "New" or "Revised" License
4 stars 1 forks source link

Cannot define multiple image pairs with same image #43

Closed BDemps closed 7 years ago

BDemps commented 7 years ago

This is the error: Error 409 Conflict The request conflicts with the state of the server. Input data violates model. ERROR: duplicate key value violates unique constraint "Image Pair Study_Image 1_key" DETAIL: Key ("Image 1")=(ImgZfDsy20170907A3) already exists.

And this is what I was trying to do: I tried creating a new image pair study from ZfDsy20170907A. When I clicked "submit" that came up. Here's the screenshot image

karlcz commented 7 years ago

The catalog model only allows one image pair study per timestep 1 image. This is intentional since our goal is to identify the single canonical pair of before/after images we will analyze.

In this case, Std6563 already is defined with ImgZfDsy20170907A3 as the first image. I found this by looking at the listing of image pair studies and searching for that first image ID that was reported in your error message

karlcz commented 7 years ago

By the way, I understand the GUI experience isn't ideal here since it offers you an option that won't work, but this is a known limitation of the current Chaise app and probably won't be fixed right away... there are several complicated bits with making this work in general, and we need to get those sorted out before we can make the GUI smarter about excluding "already chosen" values in workflows where that is a concern...

BDemps commented 7 years ago

Can you help me understand how I did this wrong? I agree that today I was able to define things just fine. I just don't know how I made the error in the first place!

On Sep 25, 2017 10:48 AM, "Karl Czajkowski" notifications@github.com wrote:

The catalog model only allows one image pair study per timestep 1 image. This is intentional since our goal is to identify the single canonical pair of before/after images we will analyze.

In this case, Std6563 already is defined with ImgZfDsy20170907A3 as the first image. I found this by looking at the listing of image pair studies and searching for that first image ID that was reported in your error message https://synapse.isrd.isi.edu/chaise/recordset/#1/Zebrafish:Image%20Pair%20Study/*::search::ZfDsy20170907A3@sort(RID::desc::)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_informatics-2Disi-2Dedu_synspy_issues_43-23issuecomment-2D331959609&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=Lssj6JKak_DaRnExGYcKnQ&m=6-HdRAo3z3GvJdtn-AqV9rInMPYcYy9HYDjGx4BUbzg&s=c_Bm-pXaPynU9WVcgM5O2qm06EAnYDjLmhXzBZ2VkBw&e=, or mute the thread https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_notifications_unsubscribe-2Dauth_AbQSt671-5Fm107uOAmv8speAigNK7sDC7ks5sl-2Dd4gaJpZM4PhaUU&d=DwMFaQ&c=clK7kQUTWtAVEOVIgvi0NU5BOUHhpN0H8p7CSfnc_gI&r=Lssj6JKak_DaRnExGYcKnQ&m=6-HdRAo3z3GvJdtn-AqV9rInMPYcYy9HYDjGx4BUbzg&s=9KkjyjETMWEof23YlSaoc_AlQgSqmcWpKfTyfOVFdNA&e= .