Numerical Values in reformatted in scientific/exponential notation are written to AGEPRO Input files (*.inp)
To Reproduce
Note: Using the Example1 model from the dev-runAgepro branch
- Create a new agepro_inp_model instance
test:
test <- ageproR::agepro_inp_model$new()
- Import data from the ageproR's Example 1 input file to
test.
# Load path of ageproR's included Example1 Input File
inpfile <- file.path(find.package("ageproR"),"example/Example1.INP")
test$read_inp(inp_file)
- Verify that the Recruitment Scaling Factor Value for
test is in Scientific/Exponential Notation
> test$recruit$recruit_scaling_factor
[1] 1e+06
- Save
test to a new AGEPRO input file with a different name. In this example, it will be named as inpfile1.INP
test$write_inp(`inpfile1.INP`)
- Open the input file that was just saved (
inpfile1.INP) and look for the Recruitment Scaling Factor value. Instead of 1000000, the value will be 1e+06:
...
[RECRUIT]
1e+06 1 75
14
...
Resolution
- Recheck numerical formatting of values is done
- Can the AGEPRO calculation engine handle scientific/exponential numerics?
- May need to convert format before saving to AGEPRO input file.
Numerical Values in reformatted in scientific/exponential notation are written to AGEPRO Input files (
*.inp)To Reproduce
Note: Using the Example1 model from the dev-runAgepro branch
test:test <- ageproR::agepro_inp_model$new()test.testis in Scientific/Exponential Notationtestto a new AGEPRO input file with a different name. In this example, it will be named asinpfile1.INPinpfile1.INP) and look for the Recruitment Scaling Factor value. Instead of1000000, the value will be1e+06:Resolution