lkerr / groundfish-MSE

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

reading in #275

Closed mle2718 closed 1 year ago

mle2718 commented 1 year ago

There's something in the code that is reading in alot of data and printing it to the console. I think it's doing so yearly.

the printing is making it a bit tricky for me to figure out how far along the economic simulations are. I'd like to squelch the printing of it, and I know how...but I haven't figured out where in the code to look.

Any idea what's doing this?

Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 333 items
Read 1 item
Read 1 item
Read 333 items
Read 1 item
Read 333 items
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 37 items
Read 1 item
Read 60 items
Read 1 item
Read 1 item
Read 2 items
Read 1 item
Read 1 item
Read 1 item
Read 370 items
Read 370 items
Read 333 items
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 1 item
Read 60 items
Read 481 items
Read 1 item
...
Read 1 item
jerellejesse commented 1 year ago

Yes! That's the ASAP assessment reading in the .dat file. get_ASAP.R function in functions/assessment folder

mle2718 commented 1 year ago

Thanks. It's this line at the top:

    dat_file <- ReadASAP3DatFile(paste('assessment/ASAP/', stockName, ".dat", sep = ''))
mle2718 commented 1 year ago

@jerellejesse -- the long read-in message doesn't bother you, right?

on the off chance that it does, you can

devtools::install_github("mle2718/simASAP")

to use a version of ReadASAP3DatFile that has a quiet option. You will have to cherrypick cf621acc3cf5f48a9675cea73504c717365e723e

See https://github.com/mle2718/simASAP/tree/master

https://github.com/cmlegault/simASAP/pull/1

jerellejesse commented 1 year ago

That's awesome, thanks!