Skip to content

Commit

Permalink
remove config files and specify to find file for witec
Browse files Browse the repository at this point in the history
  • Loading branch information
Ron Hildebrandt authored and Ron Hildebrandt committed Dec 10, 2024
1 parent 1980bff commit 2d6b7e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 113 deletions.
6 changes: 4 additions & 2 deletions src/pynxtools_raman/reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,6 @@ def read(
return template

def handle_rod_file(self, filepath) -> Dict[str, Any]:
print("HANDLE ROD")

# specify default config file for rod files
reader_dir = Path(__file__).parent
self.config_file = reader_dir.joinpath("config", "config_file_rod.json") # pylint: disable=invalid-type-comment
Expand Down Expand Up @@ -161,6 +159,10 @@ def handle_txt_file(self, filepath):
Read a .txt file from Witec Alpha Raman spectrometer and save the header and measurement data.
"""

# specify default config file
reader_dir = Path(__file__).parent
self.config_file = reader_dir.joinpath("config", "config_file_witec.json") # pylint: disable=invalid-type-comment

self.raman_data = parse_txt_file(self, filepath)
self.post_process = post_process_witec.__get__(self, RamanReader)

Expand Down
46 changes: 0 additions & 46 deletions tests/data/rod/config_file_rod.json

This file was deleted.

65 changes: 0 additions & 65 deletions tests/data/witec/config_file_witec.json

This file was deleted.

0 comments on commit 2d6b7e6

Please sign in to comment.