Re: [julia-users] ArgParse @add_arg_table not recognized

2016-01-08 Thread Uthsav Chitra
arsed args: > arg1 => Any["2","3"] > karma => 0 > arg2 => Any["no_arg_given"] > opt1 => 1 > > Which is doing essentailly the same thing as the previous example. > > (BTW, you might find DocOpt.jl to be a useful subst

Re: [julia-users] ArgParse @add_arg_table not recognized

2016-01-07 Thread Uthsav Chitra
>> arg2 => {"no_arg_given"} >> opt1 => 1 >> >> How are you trying to run that code? >> >> On Thu, Jan 7, 2016 at 12:36 PM, Uthsav Chitra <uthsav...@brown.edu >> > wrote: >> >>> I'm using Julia v0.3.9 right now.

Re: [julia-users] ArgParse @add_arg_table not recognized

2016-01-07 Thread Uthsav Chitra
sed args: > arg1 => {"2","3"} > karma => 0 > arg2 => {"no_arg_given"} > opt1 => 1 > > How are you trying to run that code? > > On Thu, Jan 7, 2016 at 12:36 PM, Uthsav Chitra <uthsav...@brown.edu > > wr

Re: [julia-users] ArgParse @add_arg_table not recognized

2016-01-07 Thread Uthsav Chitra
(Not sure how to edit my message) Actually, I ran it how you did and it worked fine. But I'm still not sure why it won't run when I use include("arg.jl"). On Thursday, January 7, 2016 at 7:09:47 PM UTC-5, Uthsav Chitra wrote: > > I opened Julia in Terminal, made a file with

[julia-users] ArgParse @add_arg_table not recognized

2016-01-07 Thread Uthsav Chitra
I'm using Julia v0.3.9 right now. I recently updated all my packages (I haven't opened Julia in a couple months), including ArgParse. The macro @add_arg_table isn't recognized though. In particular, I tried running example code here

[julia-users] Merge partitions

2015-07-21 Thread Uthsav Chitra
Is there any way to merge partitions together? For instance, could I do something like merge(partitions(1:n, 2), partitions(1:n, 3))? I essentially want to create one iterable object out of both of them.

[julia-users] Parallel for loop over partitions iterator

2015-07-16 Thread Uthsav Chitra
So I'm trying to iterate over the list of partitions of something, say `1:n` for some `n` between 13 and 21. The code that I ideally want to run looks something like this: valid_num = @parallel (+) for p in partitions(1:n) int(is_valid(p)) end println(valid_num) This