Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
20350c71
Commit
20350c71
authored
Nov 03, 2020
by
Markus Scheidgen
Browse files
Fixed bad cli imports.
parent
3c8abba3
Changes
1
Hide whitespace changes
Inline
Side-by-side
nomad/cli/admin/admin.py
View file @
20350c71
...
...
@@ -21,10 +21,6 @@ import threading
from
nomad
import
processing
as
proc
,
search
,
datamodel
,
infrastructure
,
utils
,
config
from
nomad.cli.cli
import
cli
from
nomad.datamodel.material
import
Material
,
Calculation
from
nomad.datamodel.encyclopedia
import
EncyclopediaMetadata
from
nomad.search
import
material_document
from
nomad.datamodel.material
import
Material
,
Calculation
,
Method
,
Properties
,
IdealizedStructure
,
Energies
,
Workflow
,
Bulk
def
__run_parallel
(
...
...
@@ -244,6 +240,11 @@ def index_materials(threads, code, dry, in_place, n, source):
built from the material metainfo stored in MongoDB. The materials index can
be used normally during the reindexing.
"""
from
nomad.datamodel.material
import
Material
,
Calculation
from
nomad.datamodel.encyclopedia
import
EncyclopediaMetadata
from
nomad.search
import
material_document
from
nomad.datamodel.material
import
Material
,
Calculation
,
Method
,
Properties
,
IdealizedStructure
,
Energies
,
Workflow
,
Bulk
chunk_size
=
500
infrastructure
.
setup_mongo
()
client
=
infrastructure
.
setup_elastic
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment