Commit a1a611bf authored by ankit kariryaa's avatar ankit kariryaa
Browse files

Add parserId and versionInfo in parserInfo

parent f2cfe67e
package eu.nomad_lab.parsers
import eu.{nomad_lab=>lab}
import eu.nomad_lab.DefaultPythonInterpreter
import org.{json4s => jn}
import scala.collection.breakOut
object Cp2kParser extends SimpleExternalParserGenerator(
name = "Cp2kParser",
parserInfo = jn.JObject(
("name" -> jn.JString("Cp2kParser")) ::
("version" -> jn.JString("1.0")) :: Nil),
("parserId" -> jn.JString("Cp2kParser" + lab.Cp2kVersionInfo.version)) ::
("versionInfo" -> jn.JObject(
("nomadCoreVersion" -> jn.JString(lab.NomadCoreVersionInfo.version)) ::
(lab.Cp2kVersionInfo.toMap.map{ case (key, value) =>
(key -> jn.JString(value.toString))
}(breakOut): List[(String, jn.JString)])
)) :: Nil
),
mainFileTypes = Seq("text/.*"),
mainFileRe = """ \*\*\*\* \*\*\*\* \*\*\*\*\*\* \*\* PROGRAM STARTED AT\s(?<cp2kStartedAt>.*)
\*\*\*\*\* \*\* \*\*\* \*\*\* \*\* PROGRAM STARTED ON\s*.*
......
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