Skip to content

Commit

Permalink
Fix datasheet package prefixes
Browse files Browse the repository at this point in the history
  • Loading branch information
katieb1 committed Aug 24, 2023
1 parent f669ac5 commit 07479da
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/model.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,28 +7,28 @@ e <- ssimEnvironment()
transferDir <- e$TransferDirectory

# Load RunControl datasheet to be able to set timesteps
runSettings <- datasheet(myScenario, name = "helloworldSpatial_RunControl")
runSettings <- datasheet(myScenario, name = "helloworldConda_RunControl")

# Set timesteps - can set to different frequencies if desired
timesteps <- seq(runSettings$MinimumTimestep, runSettings$MaximumTimestep)

# Load scenario's input datasheet from SyncroSim library into R dataframe
myInputDataframe <- datasheet(myScenario,
name = "helloworldSpatial_InputDatasheet")
name = "helloworldConda_InputDatasheet")

# Extract model inputs from complete input dataframe
mMean <- myInputDataframe$mMean
mSD <- myInputDataframe$mSD

# Load raster input
rasterMap <- datasheetSpatRaster(myScenario,
datasheet = "helloworldSpatial_InputDatasheet",
datasheet = "helloworldConda_InputDatasheet",
column = "InterceptRasterFile")

# Setup empty R dataframe ready to accept output in SyncroSim datasheet format
myOutputDataframe <- datasheet(
myScenario,
name = "helloworldSpatial_IntermediateDatasheet"
name = "helloworldConda_IntermediateDatasheet"
)

# For loop through iterations
Expand Down Expand Up @@ -67,4 +67,4 @@ for (iter in runSettings$MinimumIteration:runSettings$MaximumIteration) {
# Save this R dataframe back to the SyncroSim library's output datasheet
saveDatasheet(myScenario,
data = myOutputDataframe,
name = "helloworldSpatial_IntermediateDatasheet")
name = "helloworldConda_IntermediateDatasheet")

0 comments on commit 07479da

Please sign in to comment.