lkerr / groundfish-MSE

Development of Robust Management Strategies for Northeast Groundfish Fisheries in a Changing Climate
MIT License
4 stars 2 forks source link

read in omvalGlobal and simlevelresults separately. #255

Closed mle2718 closed 2 years ago

mle2718 commented 2 years ago

original runPost code reads in everything in the /sim/ folder. I'd like to store simulation level results there.

This patch reads in files that match pattern="omvalGlobal" separately from files that match pattern=simlevelresults

jerellejesse commented 2 years ago

This isn't working for me. It's getting stuck in the loop because sl is empty. https://github.com/lkerr/groundfish-MSE/blob/f121ddd2aef7c29cef45b4a502e01f906b395d90/processes/runPost.R#L28-L34

mle2718 commented 2 years ago

This isn't working for me. It's getting stuck in the loop because sl is empty.

https://github.com/lkerr/groundfish-MSE/blob/f121ddd2aef7c29cef45b4a502e01f906b395d90/processes/runPost.R#L28-L34

I'll wrap an "if" length(sl)>0 conditional around it. Ugly but should patch the problem.

mle2718 commented 2 years ago

crap I don't want to do this.