Skip to content

Commit

Permalink
Update convert.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rly authored Dec 21, 2024
1 parent 2eb8df4 commit 96b7a1e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/jdb_to_nwb/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from datetime import datetime
from dateutil import tz

from . import __version__
from .convert_raw_ephys import add_raw_ephys
from .convert_spikes import add_spikes
from .convert_behavior import add_behavior
Expand Down Expand Up @@ -36,6 +37,8 @@ def create_nwbs(
keywords=metadata.get("keywords"),
experiment_description=metadata.get("experiment_description"),
related_publications=metadata.get("related_publications"),
source_script="jdb_to_nwb " + __version__,
source_script_file_name="convert.py",
)

# if photometry is present, timestamps should be aligned to the photometry
Expand Down Expand Up @@ -64,4 +67,4 @@ def cli():
parser.add_argument("output_nwb_file_path", type=Path, help="Path to the output NWB file.")
args = parser.parse_args()

create_nwbs(args.metadata_file_path, args.output_nwb_file_path)
create_nwbs(args.metadata_file_path, args.output_nwb_file_path)

0 comments on commit 96b7a1e

Please sign in to comment.