-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
comments on initial version #35
Comments
Disclaimer: not sure about the <:Union, I never know when to add that operator or not :D |
|
|
|
ok it ran through my test-dataset (8-bit) - nice!
|
function runUnfold(args...;kwargs..., preprocessfunction =preprocess_default)
...
for raw = data.raw
tmpData = preprocess_default(raw[1];channels=channels, preprocessOptions...) # with preprocessOptions the NamedTuple I proposed earlier? or maybe we simply tell users that if they need advanced features, they should just implement their own preprocessingFunction? Maybe a healthy mix between flexibility (some pre-specified options, e.g. setting reference, selecting channels) and flexibility?
end
...
end
function preprocess_default(raw;channels=[])
return pyconvert(Array,raw.get_data(picks=channels,units="uV"))
end
|
I did this cause currently some of our datasets have a folder where the events files are ordered in this way. Can split it in a fucntion "loading_from_csv" and "events_loading" or something |
Can you remind me again what the functionality is? |
I think it would help already, if layout automatically extracts the events as a new column, and you can either provide the events_loading a new file, or the file from the layout, right? |
I think I simply got cofused in the Readme.md as it is still included there :-D I think I envisioned some kind of text-summary of events (e.g. frequency, which events how many times) - potentially also a matrix, which event is followed by which event (and how much overlap? dunno how to do that). Also maybe a range of each variable (or a in-line histogram) using UnicodePlots
using Term
using Printf
using Statistics
h(name,d) =
TextBox(@sprintf("{bold}%s{/bold} \nμ=%.2f,σ=%.2f\nmin=%.2f\nmax=%.2f",name,mean(d),std(d),minimum(d),maximum(d)),fit=true,) *
(histogram(d,vertical=true,height=1,grid=false,stats=false,labels=false,border=:none,padding=1,margin=0)|>UnicodePlots.panel)
h("testFactor",d)|>print should be easily stackable for multi-event purposes :) Edit: Number of events would be nice as a number too EditEdit: This requires UnicodePlots.jl as a requirement |
get_data
has a units argument, no need to do 10e^6 - fixed in pull lower-cased a lot of things #34Subject
,Path
etc should be samll - fixed in pull, same forRunUnfold
andCollectEvents
and some others-> fixedThe text was updated successfully, but these errors were encountered: