Skip to content

Commit

Permalink
✨ edf2asc: sr research eyelink asc.gz converter
Browse files Browse the repository at this point in the history
  • Loading branch information
WillForan committed Dec 28, 2023
1 parent 4c4255c commit 2b33b31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions edf2asc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash
EDFBIN="${EDFBIN:-$HOME/scratch/EyeLink_LinuxDevKit_1.11_x64_debs/usr/bin/EdfConverter}"
! test -d "$EDFBIN" && warn "BAD EYELINK SETTINGS, fix: export EDFBIN='$EDFBIN'" && exit 1
LD_LIBRARY_PATH=$EDFBIN java -jar "$EDFBIN/edfconverter.jar" "$@" || : # echo "always exits with error"
for f in "$@"; do
test -r "${f/.edf/.asc}" && gzip "$_"
done

0 comments on commit 2b33b31

Please sign in to comment.