Skip to content

Commit

Permalink
add option for adding sed_data file
Browse files Browse the repository at this point in the history
  • Loading branch information
rettigl committed Sep 23, 2023
1 parent 0552515 commit 814c8cc
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sed/core/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -1487,6 +1487,8 @@ def save(
config["nexus"]["definition"]
- **input_files**: A list of input files to pass to the reader.
Defaults to config["nexus"]["input_files"]
- **eln_data**: An electronic-lab-notebook file in '.yaml' format
to add to the list of files to pass to the reader.
"""
if self._binned is None:
raise NameError("Need to bin data first!")
Expand Down Expand Up @@ -1524,6 +1526,9 @@ def save(
if isinstance(input_files, str):
input_files = [input_files]

if "eln_data" in kwds:
input_files.append(kwds.pop("eln_data"))

to_nexus(
data=self._binned,
faddr=faddr,
Expand Down

0 comments on commit 814c8cc

Please sign in to comment.