anchor.diff:  ﻿#r "System.Xml.Linq"
  -#r @"D:\Rajesh\Ephys\Data Analysis\FSharp\TitanSpikeSnippeter\SnippetMaster\bin\Release\SnippetMaster.exe"
  +#r @".\WorkerNodes\Clusterer\SnippetMaster.exe"
   
   open System.Xml.Linq
   open System.IO
  
positive.code:         | None -> x
      sp,spout
  
  let files = [|"bairagi",[|"635013888324512817",[||],None,None;|]|]
  
  //let files = 
  //    File.ReadAllLines(@"C:\Users\rpoddar\Downloads\snippeting-SW-7.txt")
  //    |> Array.map (fun x -> x.Split())
  //    |> Array.fold (fun state x -> 
  //        match x with
  
negative.code:         match numsamples with
          |Some x -> x 
          |None -> 
              (getSize serverpathip (sprintf "%s.amp" sp) |> Async.RunSynchronously)/128L // for AMP files. Comment if not necessary
              //(getSize serverpathip (sprintf "%s.rhd" sp) |> Async.RunSynchronously)/176L // for RHD files. Comment if not necessary
      let numblocks = (numsamples-(endPadding|>int64))/(samplesPerBlock|>int64)|>int
  
      let refchans chipnum =
  