Skip to content

Commit

Permalink
Merge pull request #11 from FAIRmat-NFDI/pynx_pluginazation
Browse files Browse the repository at this point in the history
Pynx pluginazation
  • Loading branch information
RubelMozumder authored Jul 15, 2024
2 parents 727f245 + 6bd4bd4 commit 9e2bdd8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 12 deletions.
12 changes: 2 additions & 10 deletions pynxtools_xrd/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,13 @@
# See the License for the specific language governing permissions and
# limitations under the License.

from typing import Tuple, Any, Dict, Union
from typing import Tuple, Any
import json
import os
from pathlib import Path
import xml.etree.ElementTree as ET
import re

import pint

from pynxtools.dataconverter.helpers import (
generate_template_from_nxdl,
validate_data_dict,
)
from pynxtools.dataconverter.template import Template
from fairmat_readers_xrd import read_file, ureg
from fairmat_readers_xrd import read_file
from pynxtools.dataconverter.readers.base.reader import BaseReader
from pynxtools.dataconverter.readers.json_map.reader import (
fill_undocumented,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ dependencies = [
"xmltodict",
"pint",
"fairmat-readers-xrd",
"pynxtools>=0.3.2",
"pynxtools>=0.5.0",
]

[project.urls]
Expand Down
Binary file modified tests/data/xrdml_918-16_10/XRD-918-16_10.nxs
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
("NXxrd_pan", "xrd", f"{module_dir}/../tests/data/xrdml_918-16_10"),
],
)
def test_foo_reader(nxdl, reader_name, files_or_dir, tmp_path, caplog):
def test_xrd_reader(nxdl, reader_name, files_or_dir, tmp_path, caplog):
"""Test for the XRD reader plugin.
Parameters
Expand Down

0 comments on commit 9e2bdd8

Please sign in to comment.