From c3b97014939a6b01109efc514141b275b7543027 Mon Sep 17 00:00:00 2001 From: Mohit Yadav Date: Sun, 29 Oct 2023 20:15:10 +0000 Subject: [PATCH] change anme to dcmfile_parser --- README.MD | 4 ++-- {dcm_parser => dcmfile_parser}/__init__.py | 0 {dcm_parser => dcmfile_parser}/attribute_classes.py | 0 {dcm_parser => dcmfile_parser}/dcm_object.py | 0 {dcm_parser => dcmfile_parser}/parse_dcm.py | 0 {dcm_parser => dcmfile_parser}/templates/FESTWERT.jinja2 | 0 .../templates/FESTWERTEBLOCK.jinja2 | 0 {dcm_parser => dcmfile_parser}/templates/KENNFELD.jinja2 | 0 {dcm_parser => dcmfile_parser}/templates/KENNLINIE.jinja2 | 0 .../templates/STUETZSTELLENVERTEILUNG.jinja2 | 0 tests/test_dcm_parser.py | 6 +++--- 11 files changed, 5 insertions(+), 5 deletions(-) rename {dcm_parser => dcmfile_parser}/__init__.py (100%) rename {dcm_parser => dcmfile_parser}/attribute_classes.py (100%) rename {dcm_parser => dcmfile_parser}/dcm_object.py (100%) rename {dcm_parser => dcmfile_parser}/parse_dcm.py (100%) rename {dcm_parser => dcmfile_parser}/templates/FESTWERT.jinja2 (100%) rename {dcm_parser => dcmfile_parser}/templates/FESTWERTEBLOCK.jinja2 (100%) rename {dcm_parser => dcmfile_parser}/templates/KENNFELD.jinja2 (100%) rename {dcm_parser => dcmfile_parser}/templates/KENNLINIE.jinja2 (100%) rename {dcm_parser => dcmfile_parser}/templates/STUETZSTELLENVERTEILUNG.jinja2 (100%) diff --git a/README.MD b/README.MD index 8af2f13..893a45c 100644 --- a/README.MD +++ b/README.MD @@ -13,12 +13,12 @@ Parser for DCM files [Data Conversion Format](https://www.etas.com/download-cent 1. **Parsing the DCM file**: ```python - dcm_parser = DCMParser("path/to/dcm/file") + dcmfile_parser = DCMParser("path/to/dcm/file") ``` 2. **Creating a DCM object**: ```python - dcm_obj = dcm_parser.create_dcm_object() + dcm_obj = dcmfile_parser.create_dcm_object() ``` ## DCMObject diff --git a/dcm_parser/__init__.py b/dcmfile_parser/__init__.py similarity index 100% rename from dcm_parser/__init__.py rename to dcmfile_parser/__init__.py diff --git a/dcm_parser/attribute_classes.py b/dcmfile_parser/attribute_classes.py similarity index 100% rename from dcm_parser/attribute_classes.py rename to dcmfile_parser/attribute_classes.py diff --git a/dcm_parser/dcm_object.py b/dcmfile_parser/dcm_object.py similarity index 100% rename from dcm_parser/dcm_object.py rename to dcmfile_parser/dcm_object.py diff --git a/dcm_parser/parse_dcm.py b/dcmfile_parser/parse_dcm.py similarity index 100% rename from dcm_parser/parse_dcm.py rename to dcmfile_parser/parse_dcm.py diff --git a/dcm_parser/templates/FESTWERT.jinja2 b/dcmfile_parser/templates/FESTWERT.jinja2 similarity index 100% rename from dcm_parser/templates/FESTWERT.jinja2 rename to dcmfile_parser/templates/FESTWERT.jinja2 diff --git a/dcm_parser/templates/FESTWERTEBLOCK.jinja2 b/dcmfile_parser/templates/FESTWERTEBLOCK.jinja2 similarity index 100% rename from dcm_parser/templates/FESTWERTEBLOCK.jinja2 rename to dcmfile_parser/templates/FESTWERTEBLOCK.jinja2 diff --git a/dcm_parser/templates/KENNFELD.jinja2 b/dcmfile_parser/templates/KENNFELD.jinja2 similarity index 100% rename from dcm_parser/templates/KENNFELD.jinja2 rename to dcmfile_parser/templates/KENNFELD.jinja2 diff --git a/dcm_parser/templates/KENNLINIE.jinja2 b/dcmfile_parser/templates/KENNLINIE.jinja2 similarity index 100% rename from dcm_parser/templates/KENNLINIE.jinja2 rename to dcmfile_parser/templates/KENNLINIE.jinja2 diff --git a/dcm_parser/templates/STUETZSTELLENVERTEILUNG.jinja2 b/dcmfile_parser/templates/STUETZSTELLENVERTEILUNG.jinja2 similarity index 100% rename from dcm_parser/templates/STUETZSTELLENVERTEILUNG.jinja2 rename to dcmfile_parser/templates/STUETZSTELLENVERTEILUNG.jinja2 diff --git a/tests/test_dcm_parser.py b/tests/test_dcm_parser.py index 949417f..733e569 100644 --- a/tests/test_dcm_parser.py +++ b/tests/test_dcm_parser.py @@ -5,15 +5,15 @@ import pytest -from dcm_parser import DCMParser, DCMObject +from dcmfile_parser import DCMParser, DCMObject # Assuming the parse_dcm function is available and can parse a DCM file to produce instances of the provided attribute classes. @pytest.fixture def sample_dcm_file(tmp_path): - dcm_parser = DCMParser('tests/sample1.dcm') - dcm_obj = dcm_parser.create_dcm_object() + dcmfile_parser = DCMParser('tests/sample1.dcm') + dcm_obj = dcmfile_parser.create_dcm_object() return dcm_obj @pytest.mark.parametrize("export_file", ["test.dcm"])