|
|
|
|
|
**Done normalization steps:**
|
|
|
|
|
|
- added submodule to nomad-lab-base called normalizer-prototypes in normalizers/prototypes
|
|
|
|
|
|
|
|
|
- git submodule add git@gitlab.mpcdf.mpg.de:nomad-lab/normalizer-prototypes.git prototypes
|
|
|
|
|
|
|
|
|
- edited and added .gitmodules
|
|
|
|
|
|
- copied and adapted setup-paths from
|
|
|
../fhi-aims-basis/normalizer/normalizer-fhi-aims-basis/setup_paths.py
|
|
|
|
|
|
|
|
|
**SCALA PART**
|
|
|
|
|
|
- added and adapted `PrototypesNormalizer.scala` in `/nomad-lab-base/normalizers/prototypes/src/main/scala/eu/nomad_lab/normalizers`
|
|
|
|
|
|
added cmd
|
|
|
` cmd = Seq(DefaultPythonInterpreter.pythonExe(), "${envDir}/normalizers/protot\
|
|
|
ypes/normalizer/normalizer-prototypes/classify4me_prototypes.py",
|
|
|
`
|
|
|
|
|
|
and defined function *outputSysSection* that writes out to json secSystem
|
|
|
|
|
|
- added `PrototypesNormalizerSpec.scala` in `/nomad-lab-base/normalizers/prototypes/src/test/scala/eu/nomad_lab/normalizers` and included:
|
|
|
`object PrototypesNormalizerSpec extends Specification`
|
|
|
|
|
|
- included normalizer-prototypes in `AllNormalizers.scala`
|
|
|
|
|
|
- modified `build.sbt`
|
|
|
|
|
|
```
|
|
|
lazy val prototypesNormalizer = (project in file("normalizers/prototypes")).
|
|
|
+ dependsOn(core).
|
|
|
+ enablePlugins(BuildInfoPlugin).
|
|
|
+ settings(gitVersionSettings: _*).
|
|
|
+ settings(commonSettings: _*).
|
|
|
+ settings(
|
|
|
+ name := "prototypes",
|
|
|
+ (unmanagedResourceDirectories in Compile) += baseDirectory.value / "normalizer"
|
|
|
+ ).
|
|
|
+ settings(Revolver.settings: _*)
|
|
|
```
|
|
|
|
|
|
and added also in
|
|
|
|
|
|
```
|
|
|
lazy val normalize = (project in file("normalize")).
|
|
|
dependsOn(stats).
|
|
|
dependsOn(fhiAimsBasis).
|
|
|
dependsOn(springer).
|
|
|
+ dependsOn(prototypesNormalizer).
|
|
|
enablePlugins(BuildInfoPlugin).
|
|
|
settings(gitVersionSettings: _*).
|
|
|
settings(commonSettings: _*).
|
|
|
``` |