Compare commits

..

3 Commits

Author SHA1 Message Date
wendtalexander
128bac0f23 [pyproject] renaming 2026-05-20 09:42:14 +02:00
wendtalexander
6d61bc7e14 [repros] fixing if the last repro was empty because it was to small 2026-05-20 09:42:01 +02:00
wendtalexander
5708925442 [main] closing after writing 2026-05-20 09:41:22 +02:00
3 changed files with 15 additions and 5 deletions

View File

@@ -131,6 +131,7 @@ def convert(
stim = StimulusToNix(open_ephys, str(relacs), str(nix_path)) stim = StimulusToNix(open_ephys, str(relacs), str(nix_path))
stim.create_repros_automatically() stim.create_repros_automatically()
stim.print_table() stim.print_table()
stim.close()
@app.command() @app.command()

View File

@@ -438,10 +438,19 @@ class StimulusToNix:
continue continue
last_repro_name = self.dataset.repro_runs()[i - 1].name last_repro_name = self.dataset.repro_runs()[i - 1].name
last_repro_position = ( try:
self.block.groups[last_repro_name].tags[0].position[0] log.debug("Did find the last repro")
+ self.block.groups[last_repro_name].tags[0].extent[0] last_repro_position = (
) self.block.groups[last_repro_name].tags[0].position[0]
+ self.block.groups[last_repro_name].tags[0].extent[0]
)
except KeyError:
log.debug("Last repro did not exit")
log.info("Finish writing")
break
embed()
exit()
self._append_tag( self._append_tag(
repro, repro,
last_repro_position.reshape(-1, 1), last_repro_position.reshape(-1, 1),

View File

@@ -1,5 +1,5 @@
[project] [project]
name = "oepyhs2nix" name = "oephys2nix"
version = "0.1.1" version = "0.1.1"
description = "Converting ophen-ephys data to nix format" description = "Converting ophen-ephys data to nix format"
readme = "README.md" readme = "README.md"