Re: [julia-users] Package structure

2015-01-10 Thread Robert J Goedman
Petr, Would you like me to prepare a simple pull request tomorrow? Regards, Rob Sent from my iPhone > On Jan 10, 2015, at 6:22 PM, Petr Krysl wrote: > > Hello everybody, > > I wonder if I could get some advice on how to structure a package? I could > see how the SRC and TEST folders had

Re: [julia-users] Environment variables on Windows

2014-11-22 Thread Robert J Goedman
Thanks Isaiah! Sent from my iPhone > On Nov 22, 2014, at 9:44 PM, Isaiah Norton wrote: > > It acts like a dictionary, so you need square brackets: > > ENV["STAN_HOME"] > > (this works cross-platform, modulo platform conventions) > >> On Sun, Nov 23, 2014 at 12:11 AM, Rob J. Goedman wrote: >

[julia-users] Conversion of output file & diagnostic_file values (theta in below bernoulli example)

2014-05-04 Thread Robert J Goedman
Hi, I'm trying to figure out how to convert, in the basic_estimators bernoulli example, theta (and the gradient) in the bernoulli_samples.csv and bernoulli_diagnostics.csv files as produced by: run(`./bernoulli sample random seed=1 data file=bernoulli.data.R output file=bernoulli_samples.csv

Re: [julia-users] Re: run(`...`) return code

2014-05-03 Thread Robert J Goedman
Thanks Steven! Rob J. Goedman goed...@icloud.com On May 3, 2014, at 8:05 AM, Steven G. Johnson wrote: > run throws an exception if there was an error, so > > run(`ls`); run(`ls`) > > will only run the second command if the first succeeds. You could use a try > ... catch ... end block

[julia-users] run(`...`) return code

2014-05-03 Thread Robert J Goedman
Is there a way to express: run(`ls`) == Nothing && run(`ls`) i.e., the first command could be make, the second executing the program if make succeeds? I looked through http://blog.leahhanson.us/running-shell-commands-from-julia.html which is really nice, but does not address this. Thanks, Ro

Re: [julia-users] Stuck in trying to update METADATA

2014-04-22 Thread Robert J Goedman
): >> >> 1) Forked JuliaLang/METADATA.jl to goedman/METADATA.jl >> 2) Cloned goedman/METADATA.jl to my machine >> 3) Manually copied over my updated package info ( from >> .julia/v0.3/METADATA/HyperDualNumbers to directory with the cloned >> goedm

Re: [julia-users] Stuck in trying to update METADATA

2014-04-21 Thread Robert J Goedman
METADATA.jl to my machine > 3) Manually copied over my updated package info ( from > .julia/v0.3/METADATA/HyperDualNumbers to directory with the cloned > goedman/METADATA.jl ) > 4) Committed goedman/METADATA.jl to github > 5) Created a pull request on base JuliaLang/METADA

Re: [julia-users] Stuck in trying to update METADATA

2014-04-21 Thread Robert J Goedman
/METADATA.jl to github 5) Created a pull request on base JuliaLang/METADATA.jl (from head goedman/METADATA. Rob J. Goedman goed...@icloud.com On Apr 21, 2014, at 10:12 AM, Robert J Goedman wrote: > Hi, > > In trying to update the registered package HyperDualNumbers (from v0.1.1 to &g

Re: [julia-users] All packages for numerical math

2014-04-21 Thread Robert J Goedman
Hi Hans, Two additional packages are TaylorSeries (not in METADATA right now) and HyperDualNumbers, which I 'derived' from the C code by the authors (see below links). The entry in your list could look like: > ### HyperDualNumbers 0.1.1 > ---

[julia-users] Stuck in trying to update METADATA

2014-04-21 Thread Robert J Goedman
Hi, In trying to update the registered package HyperDualNumbers (from v0.1.1 to v0.1.2, a few very minor changes to the README.md), I think I got myself in a pickle. I tried to follow the relevant doc section. I don't think I have write access to METADATA. Details on what I did are attached be

Re: [julia-users] Hyper-Dual numbers

2014-04-11 Thread Robert J Goedman
tool to have available. > > -- John > > On Apr 6, 2014, at 4:21 PM, Robert J Goedman wrote: > >> Hi John, >> >> Jeff has updated his source files with the MIT license and I've pasted those >> into the LICENSE file of the Julia package. >> >> Ja

Re: [julia-users] Hyper-Dual numbers

2014-04-08 Thread Robert J Goedman
the code on >> the website to reflect this. Please let me know if you need any additional >> information. >> >> Jeff Fike > > On Mar 29, 2014, at 5:55 PM, John Myles White wrote: > >> Thanks for looking into it, Rob. In the absence of a license, the code i

Re: [julia-users] Hyper-Dual numbers

2014-04-06 Thread Robert J Goedman
ing into it, Rob. In the absence of a license, the code is > technically not free to use. But I imagine the authors would like to share > their code, so it should be easy to convince them to use something formal > like the MIT or BSD licenses. > > — John > > On Mar

Re: [julia-users] Re: Hyper-Dual numbers

2014-03-30 Thread Robert J Goedman
Thank you very much Jason, great feedback. I will work through your suggestions and make the changes. In particular the extensibility argument/pattern is something I've been thinking about as well. Regards, Rob J. Goedman goed...@icloud.com On Mar 30, 2014, at 10:09 AM, Jason Merrill wrote

Re: [julia-users] Hyper-Dual numbers

2014-03-29 Thread Robert J Goedman
s on the original file? > > — John > > On Mar 29, 2014, at 5:43 PM, Robert J Goedman wrote: > >> Hi, >> >> As a first 'jump into the fray' exercise I've attempted to translate Jeffrey >> Fike's hyper-dual numbers code from c++ to Juli

[julia-users] Hyper-Dual numbers

2014-03-29 Thread Robert J Goedman
Hi, As a first 'jump into the fray' exercise I've attempted to translate Jeffrey Fike's hyper-dual numbers code from c++ to Julia, more or less following the DualNumbers package. The c++ code can be found at http://adl.stanford.edu/hyperdual/hyperdual.h . The paper itself at http://adl.stanfor

Re: [julia-users] MCMC.jl on prerelease+1837

2014-03-04 Thread Robert J Goedman
Thanks Ivar, the #4882 exchange you pointed me to gets me quite a bit further! Even though it shows a deprecated Set() warning, I also had to update Set(...) constructors to Set{Symbol}({...}) in a number of places. I am now studying below issue, a good way to better learn/understand Julia ...

[julia-users] MCMC.jl on prerelease+1837

2014-03-04 Thread Robert J Goedman
Hi, Several examples using MCMC.jl work fine, but I now started to look at the autodiff examples and with linear_regression.jl I am running in below problem. I added a few println statements to pinpoint the problem and indeed there is no ExprH{:macrocall}(...) defined. Is this due to changes i

Re: [julia-users] Re: Initial try with MCMC

2014-01-17 Thread Robert J Goedman
Hi Avik, Thank you for helping out. I believe DataArrays is installed, at least interactively it seems to work. I'm assuming in that case it is visible in SerialMC as well? Is it normal there are 2 versions reported in Pkg.available("DataArrays")? Rob J. Goedman goed...@icloud.com On Jan 17,