Skip to content
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

Error on runJJM("model2014", path="config", input="input", exec="jjm2014") #1

Open
jimianelli opened this issue Aug 13, 2015 · 4 comments

Comments

@jimianelli
Copy link
Collaborator

Modified the command slightly (jjm2014 instead of jjm2014.exe) and Hessian and estimation all worked and results existed:
Models were run at /var/folders/qb/mr3sb1m1403cqwg1yy0qtjz80000gn/T//Rtmpc8aNrx folder.

But the copying of files failed...
Warning messages:
1: In .checkGuess(models, guess, output) :
Using the same initial guess for all models.
2: In file.create(to[okay]) :
cannot create file 'results/model2014.par', reason 'No such file or directory'
3: In file.create(to[okay]) :
cannot create file 'results/model2014.rep', reason 'No such file or directory'
4: In file.create(to[okay]) :
cannot create file 'results/model2014.std', reason 'No such file or directory'
5: In file.create(to[okay]) :
cannot create file 'results/model2014.cor', reason 'No such file or directory'
6: In file.create(to[okay]) :
cannot create file 'results/model2014.yld', reason 'No such file or directory'
7: In file.create(to[okay]) :
cannot create file 'results/model2014_1_R.rep', reason 'No such file or directory'

@jimianelli
Copy link
Collaborator Author

Note that by copying these files by hand, I was successful in getting

mod2014 = readJJM("model2014", path="config", input="input", version="2014")
summary(mod2014)$like
a = plot(mod2014, what = "biomass", main = "Total Biomass")
b = plot(mod2014, what = "noFishTB", main = "Unfished Biomass")
c = plot(mod2014, what = "ssb", main = "Spawning Biomass")
d = plot(mod2014, what = "ftot", main = "Fishing mortality")

to work...
image

@roliveros-ramos
Copy link
Contributor

We tested on linux, and the problem is solve now in the last commit of jjmTools. Would you mind to check if it works for you?

@jimianelli
Copy link
Collaborator Author

I'll try it this evening, however we shouldn't be posting big binary files like this on github...it takes a long time to clone/update and can cause problems down the road. think simple solution is to drop the ".exe" from the scripts and use robust directory slashes and naming conventions in R...

@roliveros-ramos
Copy link
Contributor

Done, please pull the last commit of jjmTools, now exec="jjm2014" will match "jjm2014.exe" in windows and "jjm2014" in other OS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants