You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This p["mwt"] is for prediction of the spawning stock biomass (SSB) used in recruitment predictions, and should actually be p["wt"], as the latter is for prediction of the biomass vulnerable to harvesters.
So to get the time values for vulnerable biomass (visible to harvesters and/or surveys), we need to replace p["mwt"] with p["wt"] in the following files:
Sorry for the ambiguity. I meant that the following line:
self.vulb = sum(p["vul"] * n * p["mwt"])
should instead be the following:
self.vulb = sum(p["vul"] * n * p["wt"])
I checked the rest of the script--I don't think any further corrections are needed right now--the other locations that p["wt"] or p["mwt"] are called look OK.
There is a bug in the vulnerable biomass as currently calculated, for example see here:
https://github.com/boettiger-lab/rl4fisheries/blob/rppo-n-viz/src/rl4fisheries/envs/asm_2o.py#L223
This p["mwt"] is for prediction of the spawning stock biomass (SSB) used in recruitment predictions, and should actually be p["wt"], as the latter is for prediction of the biomass vulnerable to harvesters.
So to get the time values for vulnerable biomass (visible to harvesters and/or surveys), we need to replace p["mwt"] with p["wt"] in the following files:
asm.py
asm_2o.py
asm_esc.py
Sorry, this bug must have been lost in translation when I converted this from earlier languages to Python.
The text was updated successfully, but these errors were encountered: