Commit 142035dd authored by Berk Onat's avatar Berk Onat
Browse files

Typo in the Scala names for the parser

parent 1702161e
Pipeline #23901 failed with stage
in 10 minutes and 40 seconds
......@@ -6,16 +6,16 @@ import org.{ json4s => jn }
import eu.{ nomad_lab => lab }
import scala.collection.breakOut
object NAMDParser extends SimpleExternalParserGenerator(
name = "NAMDParser",
object NamdParser extends SimpleExternalParserGenerator(
name = "NamdParser",
parserInfo = jn.JObject(
("name" -> jn.JString("NAMDParser")) ::
("parserId" -> jn.JString("NAMDParser" + lab.NAMDVersionInfo.version)) ::
("name" -> jn.JString("NamdParser")) ::
("parserId" -> jn.JString("NamdParser" + lab.NamdVersionInfo.version)) ::
("versionInfo" -> jn.JObject(
("nomadCoreVersion" -> jn.JObject(lab.NomadCoreVersionInfo.toMap.map {
case (k, v) => k -> jn.JString(v.toString)
}(breakOut): List[(String, jn.JString)])) ::
(lab.NAMDVersionInfo.toMap.map {
(lab.NamdVersionInfo.toMap.map {
case (key, value) =>
(key -> jn.JString(value.toString))
}(breakOut): List[(String, jn.JString)])
......@@ -33,7 +33,7 @@ object NAMDParser extends SimpleExternalParserGenerator(
"nomad_meta_info/public.nomadmetainfo.json",
"nomad_meta_info/common.nomadmetainfo.json",
"nomad_meta_info/meta_types.nomadmetainfo.json",
"nomad_meta_info/namd.nomadmetainfo.json",
"nomad_meta_info/namd.nomadmetainfo.json"
) ++ DefaultPythonInterpreter.commonFiles(),
dirMap = Map(
"parser-namd" -> "parsers/namd/parser/parser-namd",
......
......@@ -2,19 +2,19 @@ package eu.nomad_lab.parsers
import org.specs2.mutable.Specification
object NAMDParserTests extends Specification {
object NamdParserTests extends Specification {
"NAMDParserTest" >> {
"[tiny with 507 atoms] test with json-events" >> {
ParserRun.parse(NAMDParser, "parsers/namd/test/examples/tiny/tiny.log", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(NamdParser, "parsers/namd/test/examples/tiny/tiny.log", "json-events") must_== ParseResult.ParseSuccess
}
"[tiny with 507 atoms] test with json" >> {
ParserRun.parse(NAMDParser, "parsers/namd/test/examples/tiny/tiny.log", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(NamdParser, "parsers/namd/test/examples/tiny/tiny.log", "json") must_== ParseResult.ParseSuccess
}
"[apoa1-trajectory with 92224 atoms] test with json-events" >> {
ParserRun.parse(NAMDParser, "parsers/namd/test/examples/apoa1-trajectory/apoa1.log", "json-events") must_== ParseResult.ParseSuccess
ParserRun.parse(NamdParser, "parsers/namd/test/examples/apoa1-trajectory/apoa1.log", "json-events") must_== ParseResult.ParseSuccess
}
"[apoa1-trajectory with 92224 atoms] test with json" >> {
ParserRun.parse(NAMDParser, "parsers/namd/test/examples/apoa1-trajectory/apoa1.log", "json") must_== ParseResult.ParseSuccess
ParserRun.parse(NamdParser, "parsers/namd/test/examples/apoa1-trajectory/apoa1.log", "json") must_== ParseResult.ParseSuccess
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment