Caliper and Initial QC cleanup

Every project before 2014-02-01 did not have to go through the Caliper
steps. Future projects, however, are supposed to always go through it,
which is why the expected behavior is "get an image".
Nonetheless, there will be thousand of samples that will not have a caliper
image. Given that this can be checked in the LIMS, I really don't see the
point of having a log here. I'd rather save the time required to write
thousand of lines that wont be seen by anyone since this can be controlled
somewhere else. Could you tell me why you want to log that ?


On Thu, Aug 28, 2014 at 2:53 PM, Phil Ewels <notifications@github.com>
wrote:

> In scilifelab/lims_utils/objectsDB.py:
>
> > @@ -59,6 +59,23 @@ def get_last_first(process_list, last=True):
> >      else:
> >          return None
> >
> > +def get_caliper_img(sample_name, caliper_id):
> > +    caliper_image = None
> > +    try:
> > +        last_caliper = Process(lims,id = caliper_id)
> > +        outarts = last_caliper.all_outputs()
> > +        for out in outarts:
> > +            s_names = [p.name for p in out.samples]
> > +            if (sample_name in s_names and out.type == "ResultFile"):
> > +                files = out.files
> > +                for f in files:
> > +                    if ".png" in f.content_location:
> > +                        caliper_image = f.content_location
> > +    except TypeError:
> > +        #Should happen when no caliper processes are found
>
> Ok cool, that's fine :) I just remembered that we were talking about
> similar blind passes before and about trying to ignore them. If this is too
> common and not really relevant to log, then that's not a problem..
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/SciLifeLab/scilifelab/pull/412/files#r16836482>.
>