Skip to content

Commit

Permalink
Merge branch 'no-curation' of https://github.com/ttngu207/element-arr…
Browse files Browse the repository at this point in the history
…ay-ephys into no-curation
  • Loading branch information
Thinh Nguyen committed Jul 19, 2022
2 parents a3c5c2f + b71b459 commit fd331bd
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions element_array_ephys/readers/kilosort_triggering.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,19 +392,19 @@ def run_modules(self):
if module_status['completion_time'] is not None:
continue

module_output_json = self._get_module_output_json_filename(module)
command = (sys.executable
+ " -W ignore -m ecephys_spike_sorting.modules." + module
+ " --input_json " + module_input_json
+ " --output_json " + module_output_json)
module_output_json = self._get_module_output_json_filename(module)
command = [sys.executable,
'-W', 'ignore', '-m', 'ecephys_spike_sorting.modules.' + module,
'--input_json', module_input_json,
'--output_json', module_output_json]

start_time = datetime.utcnow()
self._update_module_status(
{module: {'start_time': start_time,
'completion_time': None,
'duration': None}})
with open(module_logfile, "a") as f:
subprocess.check_call(command.split(' '), stdout=f)
subprocess.check_call(command, stdout=f)
completion_time = datetime.utcnow()
self._update_module_status(
{module: {'start_time': start_time,
Expand Down

0 comments on commit fd331bd

Please sign in to comment.