Skip to content

Commit

Permalink
imports
Browse files Browse the repository at this point in the history
  • Loading branch information
sanbrock committed Jun 19, 2023
1 parent f76a1a9 commit 9462a1d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion dev_tools/nyaml2nxdl/comment_collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from typing import Type
from typing import Union

from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import LineLoader
from .nyaml2nxdl_helper import LineLoader

__all__ = ["Comment", "CommentCollector", "XMLComment", "YAMLComment"]

Expand Down
8 changes: 4 additions & 4 deletions dev_tools/nyaml2nxdl/nyaml2nxdl_backward_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
from typing import Dict
from typing import List

from pynxtools.dataconverter.helpers import remove_namespace_from_tag
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import cleaning_empty_lines
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import get_node_parent_info
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import get_yaml_escape_char_dict
from .nyaml2nxdl_helper import remove_namespace_from_tag
from .nyaml2nxdl_helper import cleaning_empty_lines
from .nyaml2nxdl_helper import get_node_parent_info
from .nyaml2nxdl_helper import get_yaml_escape_char_dict

DEPTH_SIZE = " "
CMNT_TAG = "!--"
Expand Down
20 changes: 10 additions & 10 deletions dev_tools/nyaml2nxdl/nyaml2nxdl_forward_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
from xml.dom import minidom

import yaml
from pynxtools.dataconverter.helpers import remove_namespace_from_tag
from pynxtools.nexus import nexus
from pynxtools.nyaml2nxdl.comment_collector import CommentCollector
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import LineLoader
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import cleaning_empty_lines
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import get_yaml_escape_char_reverter_dict
from pynxtools.nyaml2nxdl.nyaml2nxdl_helper import nx_name_type_resolving
from .nyaml2nxdl_helper import remove_namespace_from_tag
from ..utils import nexus as pynxtools_nxlib
from .nyaml2nxdl.comment_collector import CommentCollector
from .nyaml2nxdl_helper import LineLoader
from .nyaml2nxdl_helper import cleaning_empty_lines
from .nyaml2nxdl_helper import get_yaml_escape_char_reverter_dict
from .nyaml2nxdl_helper import nx_name_type_resolving

# pylint: disable=too-many-lines, global-statement, invalid-name
DOM_COMMENT = (
Expand All @@ -59,13 +59,13 @@
"#\n"
"# For further information, see http://www.nexusformat.org\n"
)
NX_CLSS = nexus.get_nx_classes()
NX_CLSS = pynxtools_nxlib.get_nx_classes()
NX_NEW_DEFINED_CLASSES = ["NX_COMPLEX"]
NX_TYPE_KEYS = nexus.get_nx_attribute_type()
NX_TYPE_KEYS = pynxtools_nxlib.get_nx_attribute_type()
NX_ATTR_IDNT = "\\@"
NX_UNIT_IDNT = "unit"
DEPTH_SIZE = " "
NX_UNIT_TYPES = nexus.get_nx_units()
NX_UNIT_TYPES = pynxtools_nxlib.get_nx_units()
COMMENT_BLOCKS: CommentCollector
CATEGORY = "" # Definition would be either 'base' or 'application'

Expand Down

0 comments on commit 9462a1d

Please sign in to comment.