-
Notifications
You must be signed in to change notification settings - Fork 2
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
Run only a profile over steepness does not copy the ss3.exe on the next folder #48
Comments
@akatan999 Thanks for posting a detailed issue. It isn't clear to me what may be occurring so this might take me a bit to dig through, but I am on it. @iantaylor-NOAA have you encountered this type of issue before with |
There are a lot of different combinations possible so it's hard to know what's going on. First
@akatan999, is it possible to specifying the absolute path instead of using |
@iantaylor-NOAA Thank you for adding your thoughts. The part the really puzzles me here is that both the retros and jitters run, only the profile is having this issue. The first lines in the
with |
Not sure if this is useful, but I just updated r4ss and nwfscDiag to
confirm I had the latest versions and ran a likelihood profile using the SAC
tool <https://github.com/shcaba/SS-DL-tool> (which implements profiling
using profile()) and had no issues running it.
In this implementation using this Shiny app, I just point to the folder
that I want to run the profile, choose the parameter or parameters I want
to run profiles for, and the range of values for the parameters, then push
go.
I ran an example for steepness and it worked fine.
…On Fri, Dec 13, 2024 at 9:42 AM Chantel Wetzel ***@***.***> wrote:
@iantaylor-NOAA <https://github.com/iantaylor-NOAA> Thank you for adding
your thoughts. The part the really puzzles me here is that both the retros
and jitters run, only the profile is having this issue. The first lines in
the run_diagnostics script is:
exe <- r4ss::check_exe(exe = model_settings$exe, dir = file.path(mydir, model_settings[["base_name"]]))[["exe"]]
model_settings[["exe"]] <- exe
with model_settings[["exe"]] used in each of the jitter, retro, and
profile calls. If the ~/ was causing issues, I would expect all the runs
to fail.
—
Reply to this email directly, view it on GitHub
<#48 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB6IZLRSZ4W6WBDG4TUWI3L2FMMBJAVCNFSM6AAAAABTRKLPPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRHE2DMOJUGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
*Jason M. Cope, Ph.D.Research Fishery Biologist*
*Fishery Resource Analysis and Monitoring Division*
*Northwest Fisheries Science Center*
*2725 Montlake Blvd. East*
*Seattle, WA 98112-2013*
*NOAA Fisheries*
*Affiliate assistant faculty*
*School of Aquatic and Fishery Sciences*
*University of Washington*
***@***.*** ***@***.***>
(206) 302-2417
www.nmfs.noaa.gov
|
@shcaba Thank you for confirming that this is working for you. The github action that runs each of the diagnostics is passing as well, so I think this issue is somewhere deep in the weeds with something not working given a specific set-up in the machine set-up. I hope all the information posted by @akatan999 can help us narrow down what this may be. |
@chantelwetzel-noaa, it looks like @okenk, you were the one who improved the profile function and added the smarter check for the |
@iantaylor-NOAA I commend your eagle eyes on this! I have been staring at the calls within these function trying to find what was different in the profile script but had not found it. My intention was to set it up so it utilized @okenk changes and to make it work across options of where the exe is located. I think changing the profile function to be the same as the other two makes sense. I am okay with the warnings but if others have opinions on this I could add suppressWarnings around the call to keep the terminal clean. |
The updates to Let me look into this later today. I have a pull request I owe @iantaylor-NOAA on |
One more thought on this: it might be better to just set |
Ian was correct, I simply changed to:
"C:/Users/mascar/Documents/Max/Commitees/ICES/WKBBASS/Northern stock"
And works. Thanks a lot for your help
Cheers
“I had never been salaried and felt that the research should be its own reward”
Gorillas in the Mist
Dian Fossey
Massimiliano Cardinale
Associate Professor
Sveriges lantbruksuniversitet
Swedish University of Agricultural Sciences
Department of Aquatic Resources (SLU Aqua)
Institute of Marine Research
Turistgatan 5, 45 330 Lysekil
Phone: +46 761 268 005
***@***.******@***.***> www.slu.se/akvatiskaresurser<http://www.slu.se/akvatiskaresurser>
SLU Aqua on Facebook<https://www.facebook.com/sluaqua/>
Our vision: Viable fish stocks in healthy waters
***@***.***
Please consider the environment before printing this e-mail
From: Chantel Wetzel ***@***.***>
Sent: 13 December 2024 19:00
To: pfmc-assessments/nwfscDiag ***@***.***>
Cc: Massimiliano Cardinale ***@***.***>; Mention ***@***.***>
Subject: Re: [pfmc-assessments/nwfscDiag] Run only a profile over steepness does not copy the ss3.exe on the next folder (Issue #48)
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
@iantaylor-NOAA<https://github.com/iantaylor-NOAA> I commend your eagle eyes on this! I have been staring at the calls within these function trying to find what was different in the profile script but had not found it. My intention was to set it up so it utilized @okenk<https://github.com/okenk> changes and to make it work across options of where the exe is located. I think changing the profile function to be the same as the other two makes sense. I am okay with the warnings but if others have opinions on this I could add suppressWarnings around the call to keep the terminal clean.
—
Reply to this email directly, view it on GitHub<#48 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AHDZUMCKDCLREXVTHH35TRL2FMOATAVCNFSM6AAAAABTRKLPPCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNBRHE3TKNBXGA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
…---
När du skickar e-post till SLU så innebär detta att SLU behandlar dina personuppgifter. För att läsa mer om hur detta går till, klicka här <https://www.slu.se/om-slu/kontakta-slu/personuppgifter/>
E-mailing SLU will result in SLU processing your personal data. For more information on how this is done, click here <https://www.slu.se/en/about-slu/contact-slu/personal-data/>
|
Hej
I have installed the latest version of nwfscDiag and tested jittering, retro and profiling. While the first two works without problems, profiling does not run as it is not able to copy the ss3.exe on the next folder when this is created, infact If I manually copy the exe and then run the function it works.
I run:
get = get_settings_profile( parameters = c("SR_BH_steep"),
low = c(0.65),
high = c(1.00),
step_size = c(0.05),
param_space = c('real'))
model_settings = get_settings(mydir = mydir, settings = list(base_name = "Basecase",
run = "profile",
profile_details = get))
run_diagnostics(mydir = mydir, model_settings = model_settings)
I get:
Matrix products: default
locale:
[1] LC_COLLATE=English_United Kingdom.utf8 LC_CTYPE=English_United Kingdom.utf8
[3] LC_MONETARY=English_United Kingdom.utf8 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.utf8
time zone: Europe/Stockholm
tzcode source: internal
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] purrr_1.0.2 nwfscDiag_1.1.2
loaded via a namespace (and not attached):
[1] viridis_0.6.5 tidyr_1.3.1 utf8_1.2.4 future_1.34.0 generics_0.1.3
[6] xml2_1.3.6 stringi_1.8.4 lattice_0.22-6 listenv_0.9.1 digest_0.6.37
[11] magrittr_2.0.3 evaluate_1.0.1 grid_4.4.2 r4ss_1.50.0 fastmap_1.2.0
[16] jsonlite_1.8.9 gridExtra_2.3 fansi_1.0.6 viridisLite_0.4.2 scales_1.3.0
[21] codetools_0.2-20 cli_3.6.3 rlang_1.1.4 parallelly_1.39.0 munsell_0.5.1
[26] withr_3.0.2 remotes_2.5.0 yaml_2.3.10 tools_4.4.2 parallel_4.4.2
[31] coda_0.19-4.1 dplyr_1.1.4 colorspace_2.1-1 corpcor_1.6.10 ggplot2_3.5.1
[36] globals_0.16.3 kableExtra_1.4.0 curl_6.0.1 vctrs_0.6.5 R6_2.5.1
[41] lifecycle_1.0.4 stringr_1.5.1 furrr_0.3.1 pkgconfig_2.0.3 pillar_1.9.0
[46] gtable_0.3.6 glue_1.8.0 gh_1.4.1 systemfonts_1.1.0 xfun_0.49
[51] tibble_3.2.1 tidyselect_1.2.1 rstudioapi_0.17.1 knitr_1.49 htmltools_0.5.8.1
[56] rmarkdown_2.29 svglite_2.1.3 compiler_4.4.2
The text was updated successfully, but these errors were encountered: