Skip to content

write_inp: Numeric values in scientific (exponential) notation format are written to AGEPRO Input file #125

Description

@efletcherPIFSC

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

  1. Create a new agepro_inp_model instance test:
    • test <- ageproR::agepro_inp_model$new()
  2. 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)
  1. Verify that the Recruitment Scaling Factor Value for test is in Scientific/Exponential Notation
> test$recruit$recruit_scaling_factor
[1] 1e+06
  1. 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`)
  1. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: AGEPRO calc engineageproR issues related running models to the AGEPRO Calculation Binarytopic: INP input fileAGEPRO *.INP input file name format

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions