This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit migration.git.tu-berlin.de (internal network only) to import your old projects to the new GitLab platform 📥

VLTSSamples.scala 740 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
package de.bbisping.coupledsim


import de.bbisping.coupledsim.ts.DirectTSImporter
import scala.io.Source

object VLTSSamples  {
  
  val srcFiles = Map(               //     S,      T,   tau-T,  a
      "vasy_0_1" -> "vasy_0_1.csv", //   289,   1224,  no tau,  2
      "vasy_1_4" -> "vasy_1_4.csv", //  1183,   4464,    1213,  6
      "cwi_1_2" -> "cwi_1_2.csv"    //  1952,   2387,    2215, 26
//      "cwi_3_14" -> "cwi_3_14.csv"  //  3996,  14552,   14551,  2
  )
  
  def getSampleFile(slug: String) = "shared/src/test/assets/vlts/" + srcFiles(slug)
  
  def getSample(slug: String) = {
    
    val srcContent = Source.fromFile(getSampleFile(slug)).getLines().mkString("\n")
    
    new DirectTSImporter(srcContent).result()
  }
  
}