Skip to content

Commit

Permalink
Fix circ dep
Browse files Browse the repository at this point in the history
  • Loading branch information
ladinesa committed Aug 22, 2024
1 parent 87b4c11 commit 3c53c9c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions electronicparsers/magres/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@
)
from .metainfo.magres import m_package

# For the automatic workflow NMR
from nomad.search import search
from nomad.app.v1.models import MetadataRequired
from ..utils import BeyondDFTWorkflowsParser

Expand Down Expand Up @@ -472,6 +470,9 @@ def parse(self, filepath, archive, logger):
filepath_stripped = self.filepath.split('raw/')[-1]
metadata = []
try:
# For the automatic workflow NMR
from nomad.search import search

upload_id = self.archive.metadata.upload_id
search_ids = search(
owner='visible',
Expand Down
5 changes: 3 additions & 2 deletions electronicparsers/w2dynamics/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
)
from ..wannier90.parser import WOutParser, HrParser

# For automatic workflows
from ..utils import get_files, BeyondDFTWorkflowsParser
from nomad.search import search
from nomad.app.v1.models import MetadataRequired


Expand Down Expand Up @@ -638,6 +636,9 @@ def parse(self, filepath, archive, logger):
wannier90_path = wannier90_files[-1].split('raw/')[-1]
filepath_stripped = self.filepath.split('raw/')[-1]
try:
# For automatic workflows
from nomad.search import search

upload_id = self.archive.metadata.upload_id
search_ids = search(
owner='visible',
Expand Down

0 comments on commit 3c53c9c

Please sign in to comment.