FS#14 - setPlusGroup resetting stock.wt
Attached to Project:
FLR
Opened by Niels Hintzen (niels.hintzen) - Saturday, 21 March 2009, 10:12 GMT+2
Opened by Niels Hintzen (niels.hintzen) - Saturday, 21 March 2009, 10:12 GMT+2
|
DetailsHi,
I would like to report the following bug: If catches in year y are 0 at age = plusgroup, and I want to set the plusgroup, it resets catch.wt to 0 HOWEVER it resets stock.wt at age=plusgroup in year y to 0 as well. I don't think we want this. Tried to do the same for data(ple4) but unfortunatelly I cannot reproduce this error. Using FLCore 3.0 R.2.8.1 Niels |
This task depends upon
catch.n(ple4)[15,]<-
and then
> setPlusGroup(ple4, 14)@stock.wt[14,]
An object of class "FLQuant"
, , unit = unique, season = all, area = unique
year
age 1957 1958 1959 1960 1961 1962 1963 1964 1965
14 1.53607 1.98726 1.19451 1.46526 1.31582 1.69758 1.59220 1.49161 1.13283
year
age 1966 1967 1968 1969 1970 1971 1972 1973 1974
14 1.18630 1.17077 1.11205 1.13710 1.17010 1.06985 1.15626 0.99225 1.07222
year
age 1975 1976 1977 1978 1979 1980 1981 1982 1983
14 1.17953 1.11354 1.08202 1.10800 1.20884 1.28788 1.29597 1.13520 1.15687
year
age 1984 1985 1986 1987 1988 1989 1990 1991 1992
14 1.21366 1.25592 1.27668 1.13366 1.01046 0.86433 1.08500 0.91353 1.01549
year
age 1993 1994 1995 1996 1997 1998 1999 2000 2001
14 1.06317 0.96461 1.04629 0.85355 1.10738 0.89893 1.01256 1.08124 0.94262
units: kg
We will need an example FLStock object on which this happens to identify the issue. Does the object have any 'iters'?