Ignore:
Timestamp:
May 21, 2012, 1:28:35 PM (5 years ago)
Author:
work@…
Message:

debug getMeasurementDataForAssay issue where data has no sampleToken?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/api/ApiController.groovy

    r2224 r2233  
    390390            try {
    391391                measurementData.each { data ->
    392                     if (!matrix.containsKey(data.sampleToken)) matrix[data.sampleToken] = [:]
    393                     matrix[data.sampleToken][data.measurementToken] = data.value
     392                    try {
     393                        if (!matrix.containsKey(data.sampleToken)) matrix[data.sampleToken] = [:]
     394                        matrix[data.sampleToken][data.measurementToken] = data.value
     395                    } catch (Exception e) {
     396                        // it seems that some measurement data does not contain a sample token?
     397                        println "getMeasurementDataForAssay error for data of assay '${assay.name}' (token ${assayToken}): ${e.getMessage()}"
     398                        println data.dump()
     399                    }
    394400                }
    395401
Note: See TracChangeset for help on using the changeset viewer.