Skip to content
This repository has been archived by the owner on Dec 10, 2021. It is now read-only.

Bash example error #27

Open
holmescharles opened this issue Nov 7, 2019 · 0 comments
Open

Bash example error #27

holmescharles opened this issue Nov 7, 2019 · 0 comments

Comments

@holmescharles
Copy link

I am trying to run the bash examples, but when I try to run "synthesize_dataset.sh", I get a few errors (shown below) and the dataset directory lacks the raw.dat.prv file (see the very end for the directory contents). What am I doing wrong?

$ ➜ ./synthesize_dataset.sh
[ Getting processor spec... ]
[ Checking inputs and substituting prvs ... ]
[ Computing process signature ... ]
Process signature: 6505449d72ace76d3541da1f4309c55c8e25bb64
[ Checking outputs... ]
{"waveforms_out":"dataset/waveforms_true.mda.prv","geometry_out":"dataset/geom.csv"}
Processing ouput - dataset/waveforms_true.mda.prv
false
{"waveforms_out":"/tmp/mountainlab-tmp/output_6505449d72ace76d3541da1f4309c55c8e25bb64_waveforms_out.mda","geometry_out":"dataset/geom.csv"}
Processing ouput - dataset/geom.csv
false
{"waveforms_out":"/tmp/mountainlab-tmp/output_6505449d72ace76d3541da1f4309c55c8e25bb64_waveforms_out.mda","geometry_out":"/data/multimem/code/mountainsort_examples/bash_examples/001_ms4_bash_example/dataset/geom.csv"}
[ Checking process cache ... ]
[ Creating temporary directory ... ]
[ Creating links to input files... ]
[ Preparing temporary outputs... ]
Processing ouput - /tmp/mountainlab-tmp/output_6505449d72ace76d3541da1f4309c55c8e25bb64_waveforms_out.mda
false
Processing ouput - /data/multimem/code/mountainsort_examples/bash_examples/001_ms4_bash_example/dataset/geom.csv
false
[ Initializing process ... ]
[ Running ... ] /data/code/python/miniconda3-cdh/envs/mtnsort/bin/python3 /data/code/python/miniconda3-cdh/envs/mtnsort/etc/mountainlab/packages/ml_ephys/synthesis/synthesis.py.mp ephys.synthesize_random_waveforms --_tempdir=/tmp/mountainlab-tmp/tempdir_6505449d72_HT0zui --waveforms_out=/tmp/mountainlab-tmp/tempdir_6505449d72_HT0zui/output_waveforms_out.mda --geometry_out=/tmp/mountainlab-tmp/tempdir_6505449d72_HT0zui/output_geometry_out.csv --upsamplefac=13 --M=4 --average_peak_amplitude=100
Elapsed time for processor ephys.synthesize_random_waveforms: 0.905 sec
Finalizing output waveforms_out
Finalizing output geometry_out
This is only a warning: Unable to rename file /tmp/mountainlab-tmp/tempdir_6505449d72_HT0zui/output_geometry_out.csv -> /data/multimem/code/mountainsort_examples/bash_examples/001_ms4_bash_example/dataset/geom.csv. Perhaps temporary directory is not on the same device as the output file directory. Copying instead.
[ Creating output prv for waveforms_out ... ]
[ Saving to process cache ... ]
(node:20063) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'original_checksum' of undefined
    at /data/code/python/miniconda3-cdh/envs/mtnsort/lib/node_modules/mountainlab/mlproc/prv_utils.js:202:24
    at /data/code/python/miniconda3-cdh/envs/mtnsort/lib/node_modules/mountainlab/mlproc/prv_utils.js:192:7
(node:20063) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20063) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[ Getting processor spec... ]
[ Checking inputs and substituting prvs ... ]
[ Computing process signature ... ]
Process signature: 19f60d5d6dfeb2a24e5866112ed0472a994d4733
[ Checking outputs... ]
{"firings_out":"dataset/firings_true.mda.prv"}
Processing ouput - dataset/firings_true.mda.prv
false
{"firings_out":"/tmp/mountainlab-tmp/output_19f60d5d6dfeb2a24e5866112ed0472a994d4733_firings_out.mda"}
[ Checking process cache ... ]
[ Creating temporary directory ... ]
[ Creating links to input files... ]
[ Preparing temporary outputs... ]
Processing ouput - /tmp/mountainlab-tmp/output_19f60d5d6dfeb2a24e5866112ed0472a994d4733_firings_out.mda
false
[ Initializing process ... ]
[ Running ... ] /data/code/python/miniconda3-cdh/envs/mtnsort/bin/python3 /data/code/python/miniconda3-cdh/envs/mtnsort/etc/mountainlab/packages/ml_ephys/synthesis/synthesis.py.mp ephys.synthesize_random_firings --_tempdir=/tmp/mountainlab-tmp/tempdir_19f60d5d6d_qC7yF4 --firings_out=/tmp/mountainlab-tmp/tempdir_19f60d5d6d_qC7yF4/output_firings_out.mda --duration=600
Elapsed time for processor ephys.synthesize_random_firings: 0.836 sec
Finalizing output firings_out
[ Creating output prv for firings_out ... ]
[ Saving to process cache ... ]
(node:20264) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'original_checksum' of undefined
    at /data/code/python/miniconda3-cdh/envs/mtnsort/lib/node_modules/mountainlab/mlproc/prv_utils.js:202:24
    at /data/code/python/miniconda3-cdh/envs/mtnsort/lib/node_modules/mountainlab/mlproc/prv_utils.js:192:7
(node:20264) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:20264) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[ Getting processor spec... ]
[ Checking inputs and substituting prvs ... ]
Error in input firings (/data/multimem/code/mountainsort_examples/bash_examples/001_ms4_bash_example/dataset/firings_true.mda.prv): Error: Error reading .prv file: /data/multimem/code/mountainsort_examples/bash_examples/001_ms4_bash_example/dataset/firings_true.mda.prv

$ ➜ ls dataset
firings_true.mda.prv  geom.csv  waveforms_true.mda.prv
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant