Fixed issues with local deployment for SIPNET model.
The variables cpruncmd and cpoutcmd were added to write.config.SIPNET to extend it for cloud based PEcAn deployment. On a local deployment setup the workflow for SIPNET model was breaking with the below error :
Error in gsub("@CPRUNCMD@", cpruncmd, jobsh) :
invalid 'replacement' argument
Calls: <Anonymous> ... <Anonymous> -> do.call -> write.config.SIPNET -> gsub
> proc.time()
user system elapsed
7.132 3.362 7.877
The error arises since local pecan.xml does not contain settings$host$rabbitmq$cpfcmd and settings$host$rabbitmq$cpfcmd which is used to set cpruncmd and cpoutcmd in the write.config.SIPNET file.
Review Time Estimate
[ ] Immediately
[ ] Within one week
[X] When possible
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[X] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
[ ] My change requires a change to the documentation.
Description
Fixed issues with local deployment for
SIPNET
model.The variables
cpruncmd
andcpoutcmd
were added towrite.config.SIPNET
to extend it for cloud based PEcAn deployment. On a local deployment setup the workflow for SIPNET model was breaking with the below error :The error arises since local
pecan.xml
does not containsettings$host$rabbitmq$cpfcmd
andsettings$host$rabbitmq$cpfcmd
which is used to setcpruncmd
andcpoutcmd
in thewrite.config.SIPNET
file.Review Time Estimate
Types of changes
Checklist: