Example #1
0
 public ushort_vectorEnumerator(ushort_vector collection)
 {
     collectionRef = collection;
     currentIndex  = -1;
     currentObject = null;
     currentSize   = collectionRef.Count;
 }
Example #2
0
 public extraction_metric(uint lane, uint tile, uint cycle, ulong date_time, ushort_vector intensities_p90, float_vector focus_scores) : this(c_csharp_metricsPINVOKE.new_extraction_metric__SWIG_2(lane, tile, cycle, date_time, ushort_vector.getCPtr(intensities_p90), float_vector.getCPtr(focus_scores)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #3
0
 public extraction_metric(uint lane, uint tile, uint cycle, ushort_vector max_intensity_values, float_vector focus_scores) : this(c_csharp_metricsPINVOKE.new_extraction_metric__SWIG_8(lane, tile, cycle, ushort_vector.getCPtr(max_intensity_values), float_vector.getCPtr(focus_scores)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #4
0
 public image_metric(uint lane, uint tile, uint cycle, ushort channel_count, ushort_vector min_contrast, ushort_vector max_contrast) : this(c_csharp_metricsPINVOKE.new_image_metric__SWIG_2(lane, tile, cycle, channel_count, ushort_vector.getCPtr(min_contrast), ushort_vector.getCPtr(max_contrast)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #5
0
 public ushort_vector(ushort_vector other) : this(c_csharp_runPINVOKE.new_ushort_vector__SWIG_1(ushort_vector.getCPtr(other)), true)
 {
     if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #6
0
 public void set(uint lane, uint tile, uint cycle, ushort_vector max_intensity_values, float_vector focus_scores)
 {
     c_csharp_metricsPINVOKE.extraction_metric_set__SWIG_1(swigCPtr, lane, tile, cycle, ushort_vector.getCPtr(max_intensity_values), float_vector.getCPtr(focus_scores));
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #7
0
 public void SetRange(int index, ushort_vector values)
 {
     c_csharp_runPINVOKE.ushort_vector_SetRange(swigCPtr, index, ushort_vector.getCPtr(values));
     if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #8
0
        public static ushort_vector Repeat(ushort value, int count)
        {
            global::System.IntPtr cPtr = c_csharp_runPINVOKE.ushort_vector_Repeat(value, count);
            ushort_vector         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ushort_vector(cPtr, true);

            if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
            {
                throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #9
0
        public ushort_vector GetRange(int index, int count)
        {
            global::System.IntPtr cPtr = c_csharp_runPINVOKE.ushort_vector_GetRange(swigCPtr, index, count);
            ushort_vector         ret  = (cPtr == global::System.IntPtr.Zero) ? null : new ushort_vector(cPtr, true);

            if (c_csharp_runPINVOKE.SWIGPendingException.Pending)
            {
                throw c_csharp_runPINVOKE.SWIGPendingException.Retrieve();
            }
            return(ret);
        }
Example #10
0
        public void TestDispose()
        {
            run_metrics tmp = new run_metrics();

            using (var set = tmp.extraction_metric_set())
            {
                ushort_vector tmp1 = new ushort_vector();
                float_vector  tmp2 = new float_vector();
                set.insert(new extraction_metric(1, 1, 1, tmp1, tmp2));
            }
            using (var set = tmp.extraction_metric_set())
            {
                Assert.AreEqual((int)set.size(), 1);
            }
            using (var set = tmp.extraction_metric_set())
            {
                Assert.AreEqual((int)set.at(0).lane(), 1);
            }
        }
        protected override void SetUp()
        {
            uint_vector   calledCounts1       = new uint_vector(new uint[] { 52, 1049523, 654071, 500476, 982989 });
            ushort_vector correctedIntCalled1 = new ushort_vector(new ushort[] { 245, 252, 61, 235 });

            expected_metrics.Clear();
            expected_metrics.Add(new corrected_intensity_metric(7, 1114, 1, correctedIntCalled1, (calledCounts1)));
            uint_vector   calledCounts2       = new uint_vector(new uint[] { 0, 1063708, 582243, 588028, 953132 });
            ushort_vector correctedIntCalled2 = new ushort_vector(new ushort[] { 232, 257, 68, 228 });

            expected_metrics.Add(new corrected_intensity_metric(7, 1114, 2, (correctedIntCalled2), (calledCounts2)));
            uint_vector   calledCounts3       = new uint_vector(new uint[] { 0, 1022928, 617523, 594836, 951825 });
            ushort_vector correctedIntCalled3 = new ushort_vector(new ushort[] { 227, 268, 68, 229 });

            expected_metrics.Add(new corrected_intensity_metric(7, 1114, 3, (correctedIntCalled3), (calledCounts3)));

            int[] tmp = new int[] { 3, 34, 7, 0, 90, 4, 1, 0, -11, 0, -4, 0, 61, 0, -21, 0, 52, 0, 0, 0, -77, 3, 16, 0, -9, -6, 9, 0,
                                    -4, -94, 7, 0, -51, -1, 14, 0, 7, 0, 90, 4, 2, 0, -24, 0, 1, 1, 68, 0, -28, 0, 0, 0, 0, 0, 28, 59,
                                    16, 0, 99, -30, 8, 0, -4, -8, 8, 0, 44, -117, 14, 0, 7, 0, 90, 4, 3, 0, -29, 0, 12, 1, 68, 0, -27,
                                    0, 0, 0, 0, 0, -48, -101, 15, 0, 51, 108, 9, 0, -108, 19, 9, 0, 17, -122, 14, 0 };
            SetupBuffers(tmp, Version);
        }
Example #12
0
        public ushort_vector correctedIntAll()
        {
            ushort_vector ret = new ushort_vector(c_csharp_metricsPINVOKE.corrected_intensity_metric_correctedIntAll__SWIG_1(swigCPtr), false);

            return(ret);
        }
Example #13
0
        public ushort_vector max_intensity_values()
        {
            ushort_vector ret = new ushort_vector(c_csharp_metricsPINVOKE.extraction_metric_max_intensity_values(swigCPtr), false);

            return(ret);
        }
Example #14
0
        public ushort_vector maxContrast()
        {
            ushort_vector ret = new ushort_vector(c_csharp_metricsPINVOKE.image_metric_maxContrast__SWIG_1(swigCPtr), false);

            return(ret);
        }
Example #15
0
        public ushort_vector max_contrast_array()
        {
            ushort_vector ret = new ushort_vector(c_csharp_metricsPINVOKE.image_metric_max_contrast_array(swigCPtr), false);

            return(ret);
        }
		protected override void SetUp()
		{
			uint_vector calledCounts1 = new uint_vector(new uint[]{52, 1049523, 654071, 500476, 982989});
			ushort_vector correctedIntCalled1 = new ushort_vector(new ushort[]{245, 252, 61, 235});
			expected_metrics.Clear();
			expected_metrics.Add(new corrected_intensity_metric(7, 1114, 1, correctedIntCalled1, (calledCounts1)));
			uint_vector calledCounts2 = new uint_vector(new uint[]{0, 1063708, 582243, 588028, 953132});
			ushort_vector correctedIntCalled2 = new ushort_vector(new ushort[]{232, 257, 68, 228});
			expected_metrics.Add(new corrected_intensity_metric(7, 1114, 2, (correctedIntCalled2), (calledCounts2)));
			uint_vector calledCounts3 = new uint_vector(new uint[]{0, 1022928, 617523, 594836, 951825});
			ushort_vector correctedIntCalled3 = new ushort_vector(new ushort[]{227, 268, 68, 229});
			expected_metrics.Add(new corrected_intensity_metric(7, 1114, 3, (correctedIntCalled3), (calledCounts3)));

			int[] tmp = new int[]{3, 34, 7, 0, 90, 4, 1, 0, -11, 0, -4, 0, 61, 0, -21, 0, 52, 0, 0, 0, -77, 3, 16, 0, -9, -6, 9, 0,
				-4, -94, 7, 0, -51, -1, 14, 0, 7, 0, 90, 4, 2, 0, -24, 0, 1, 1, 68, 0, -28, 0, 0, 0, 0, 0, 28, 59,
				16, 0, 99, -30, 8, 0, -4, -8, 8, 0, 44, -117, 14, 0, 7, 0, 90, 4, 3, 0, -29, 0, 12, 1, 68, 0, -27,
				0, 0, 0, 0, 0, -48, -101, 15, 0, 51, 108, 9, 0, -108, 19, 9, 0, 17, -122, 14, 0
			};
			SetupBuffers (tmp,Version);
		}
Example #17
0
 public corrected_intensity_metric(uint lane, uint tile, uint cycle, ushort average_cycle_intensity, float signal_to_noise, float_vector corrected_int_called, ushort_vector corrected_int_all, uint_vector called_counts) : this(c_csharp_metricsPINVOKE.new_corrected_intensity_metric__SWIG_2(lane, tile, cycle, average_cycle_intensity, signal_to_noise, float_vector.getCPtr(corrected_int_called), ushort_vector.getCPtr(corrected_int_all), uint_vector.getCPtr(called_counts)), true)
 {
     if (c_csharp_metricsPINVOKE.SWIGPendingException.Pending)
     {
         throw c_csharp_metricsPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Example #18
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ushort_vector obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }
Example #19
0
        public ushort_vector corrected_int_all_array()
        {
            ushort_vector ret = new ushort_vector(c_csharp_metricsPINVOKE.corrected_intensity_metric_corrected_int_all_array(swigCPtr), false);

            return(ret);
        }