-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Describe the bug
Variable reduction does not run and puts out "Error in round(devExp, 2) : non-numeric argument to mathematical function
Execution halted." No variable reduction screen appears. It seems like the issue may be produced by the site data preparation step (see screenshot of datasheet). The site data appears to have multiple values for a variable for an individual site, or values do not match input rasters.
To Reproduce
I am sending the library that produced this error to Katie.
Expected behavior
I expect site preparation to pull values of each variable at each site. Then I expect the variable reduction screen to pop up showing a matrix of correlations between site variables for my points.
Relevant log output
SyncroSim Version: 3.0.2.0
Operating System: Microsoft Windows NT 6.2.9200.0
Packages:
core -> 3.0.2
wisdm -> 2.0.1
Parent Scenario is: [10] Brassica tournifortii - steps 3-6
Result scenario is: [30] Brassica tournifortii - steps 3-6 ([10] @ 04-Oct-2024 9:28 AM)
STARTING SIMULATION: 10/4/2024 : 9:28:52 AM
Conda installation: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda
Conda environment: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda\envs\wisdm-1\wisdm-conda-s3
Only one field data observation present per pixel; no aggregation or weighting required.
3 - Site Data Preparation => Total time: 00:02:17
Conda installation: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda
Conda environment: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda\envs\wisdm-1\wisdm-conda-s3
4 - Background Data Generation => Total time: 00:00:30
Conda installation: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda
Conda environment: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda\envs\wisdm-1\wisdm-conda-s3
5 - Prepare Training/Testing Data => Total time: 00:00:24
Conda installation: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda
Conda environment: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda\envs\wisdm-1\wisdm-conda-s3
6 - Variable Reduction => Total time: 00:00:27
[Failure] The external program failed.
Program name was: C:\Users\lfraser\AppData\Local\SyncroSim3\Conda\envs\wisdm-1\wisdm-conda-s3\Scripts\Rscript.exe
Arguments were: "C:\Users\lfraser\AppData\Local\SyncroSim3\Packages\wisdm\2.0.1\6-variable-reduction.R"
Exit code was: 1
More information:
Attaching package: 'dplyr'
The following objects are masked from 'package:stats':
filter, lag
The following objects are masked from 'package:base':
intersect, setdiff, setequal, union
Saved
Error in round(devExp, 2) : non-numeric argument to mathematical function
Execution halted
SIMULATION COMPLETE: 10/4/2024 : 9:32:31 AM
Total simulation time: 00:03:39
Software versions:
- SyncroSim: 3.0.2
- WISDM 2.0.1
