Skip to content

Instantly share code, notes, and snippets.

View tbenst's full-sized avatar

Tyler Benster tbenst

View GitHub Profile
@tbenst
tbenst / install.sh out
Created September 29, 2020 23:26
euresys install errors
Installing eGrabber Package...
Compiling for x86_64 kernel 5.4.0...
linux-vdso.so.1 (0x00007ffc493b7000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f1ec18e7000)
/lib64/ld-linux-x86-64.so.2 (0x00007f1ec1af9000)
cp: cannot stat '*': No such file or directory
cp: cannot stat 'shell/egrabber.conf': No such file or directory
Installing drivers...
make: getcwd: No such file or directory
@tbenst
tbenst / circus.nix
Created September 2, 2020 01:34
Build singularity image for spyking circus using hdf5 with MPI support
let
nixpkgsSHA = "fc966732c89f9485a1ea1a0f86b2a1bb97db862c"; # 2020-08-18
pkgs = import (fetchTarball
"https://github.com/NixOS/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: {
hdf5 = super.hdf5.override { mpi = super.mpich; };
pythonOverrides = python-self: python-super: {
numpy = python-super.numpy.override { blas = super.mkl; };
let
nixpkgsSHA = "4fed373652870addb0b0cf809899bd0d49cfaf59"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: {
hdf5 = super.hdf5.override { mpi = super.mpich; };
pythonOverrides = python-self: python-super: {
mpi4py = python-super.mpi4py.override {
mpi = super.mpich;
let
nixpkgsSHA = "4fed373652870addb0b0cf809899bd0d49cfaf59"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: rec {
hdf5 = super.hdf5.override { mpi = super.mpich; };
pythonOverrides = python-self: python-super: rec {
h5py = python-super.h5py.override {
mpi4py = mpi4py;
let
nixpkgsSHA = "4fed373652870addb0b0cf809899bd0d49cfaf59"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: rec {
hdf5 = super.hdf5.override { mpi = super.mpich; };
pythonOverrides = python-self: python-super: {
h5py = python-super.h5py.override {
mpi4py = mpi4py;
let
nixpkgsSHA = "4fed373652870addb0b0cf809899bd0d49cfaf59"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: rec {
hdf5 = super.hdf5.override { mpi = super.mpich; };
pythonOverrides = python-self: python-super: {
mpi4py = python-super.mpi4py.override {
mpi = super.mpich;
let
nixpkgsSHA = "3cb7a1cffe9bb43ec51a7707959edbebdc65ec7a"; # 2020-07-18
pkgs = import (fetchTarball
"https://github.com/tbenst/nixpkgs/archive/${nixpkgsSHA}.tar.gz") {
system = builtins.currentSystem;
overlays = [ (self: super: {
hdf5 = super.hdf5.override { mpi = super.mpich; };
})];
};
in
#%%
from ctypes import c_int32, c_int16
from pathlib import Path
import win32com.client
import numpy as np
import os
import matplotlib.pyplot as plt
import matplotlib
from time import sleep, time_ns
#%%
{ pkgs ? import <nixpkgs> {}}:
let
jupyterPort = pkgs.config.jupyterPort;
fhs = pkgs.buildFHSUserEnv {
name = "julia-fhs";
targetPkgs = pkgs: with pkgs;
[
git
gitRepo
We can make this file beautiful and searchable if this error is corrected: It looks like row 8 should actually have 9 columns, instead of 1. in line 7.
scorer,mattwright,mattwright,mattwright,mattwright,mattwright,mattwright,mattwright,mattwright
bodyparts,bodypart1,bodypart1,bodypart2,bodypart2,bodypart3,bodypart3,objectA,objectA
coords,x,y,x,y,x,y,x,y
labeled-data/notag.vglut3.chr2.oft.2.second/img00268.png,204.33774872086414,87.11378055713476,194.02279704377486,69.92219442865257,180.2695281409892,90.55209778283108,,
labeled-data/notag.vglut3.chr2.oft.2.second/img00316.png,383.13024445707794,288.5991699829449,345.9964184195567,218.4574985787379,196.77345082433206,213.6438544627629,293.7339965889711,153.81713473564525
labeled-data/notag.vglut3.chr2.oft.2.second/img01141.png,461.5238772029563,178.5730187606595,489.0304150085276,258.3419783968164,466.3375213189313,301.66477544059126,282.04371802160324,286.53617964752704
labeled-data/notag.vglut3.chr2.oft.2.second/img01234.png,344.62109152927803,358.0531779420125,209.83905628197846,372.4941102899375,198.14877771461065,348.42588971006256,198.14877771461065,342.92458214894833
labeled-data/notag.vglut3.chr2.oft.2