These are chat archives for freeman-lab/zebra

4th
Apr 2015
Davis Bennett
@d-v-b
Apr 04 2015 04:00
@freeman-lab do you know the way to unzip tuples in python?
i just found this out today
x = zip(k,v)
k,v  = zip(*x)
Davis Bennett
@d-v-b
Apr 04 2015 18:20
@freeman-lab what's the best way to take the mean of an experiment across pixels?
i.e. the result is an average time series
and the data object is Series
I'm trying to convert my series data to images and then take the mean of that, but this is terribly slow
Jeremy Freeman
@freeman-lab
Apr 04 2015 18:23
yeah don't do that!
what about data.mean()?
or am i missing something?
that'll take the mean across records, which in this case are pixels
Davis Bennett
@d-v-b
Apr 04 2015 18:23
ahh that's across records
Jeremy Freeman
@freeman-lab
Apr 04 2015 18:23
yeah
as opposed to data.seriesMean()
Davis Bennett
@d-v-b
Apr 04 2015 18:24
I was confused by seriesMean() and mean()
Jeremy Freeman
@freeman-lab
Apr 04 2015 18:24
yeah...
had to use a different name
Davis Bennett
@d-v-b
Apr 04 2015 18:26
the documentation of Series.mean() isn't very clear about this
it just says Mean of values, ignoring keys
Jeremy Freeman
@freeman-lab
Apr 04 2015 18:40
submit a PR dawg!
that method is actually defined on Data not Series, because it's common to both
so edit the docstring on Data.mean
whatever you'd want to make it more obvious to you what it does
Davis Bennett
@d-v-b
Apr 04 2015 18:41
kk!
Jeremy Freeman
@freeman-lab
Apr 04 2015 18:42
And yeah I agree with you, the current one is not particularly clear =)
Davis Bennett
@d-v-b
Apr 04 2015 19:33
git 101 issue here: I've cloned thunder, made branch, made my changes, now do I have to register this as a proper fork on github before I can make a PR?
or should I have forked as step 1 :smile:
Jeremy Freeman
@freeman-lab
Apr 04 2015 19:34
Bingo, first fork, then clone, then branch, then when you view your branch on github you'll be able to initiate a PR back into the main master
If this commit was minor I'd just start from scratch
Though a git magician could probably do it in one go
Jeremy Freeman
@freeman-lab
Apr 04 2015 20:55
@d-v-b thanks for the PR! left some comments, you can make changes to the PR just by committing to your branch.
Davis Bennett
@d-v-b
Apr 04 2015 20:56
thanks!
Jeremy Freeman
@freeman-lab
Apr 04 2015 20:56
oh and that unzip is trick is neat i never knew that!
Davis Bennett
@d-v-b
Apr 04 2015 20:57
the snake has many tricks