Skip to content

Commit

Permalink
Merge pull request #698 from africanmathsinitiative/master
Browse files Browse the repository at this point in the history
merge from main
  • Loading branch information
dannyparsons authored Jul 3, 2017
2 parents 15c07ca + 155234b commit 934d51f
Show file tree
Hide file tree
Showing 11 changed files with 358 additions and 322 deletions.
4 changes: 3 additions & 1 deletion instat/clsRLink.vb
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,9 @@ Public Class RLink
strCommand = strVariableName & "<-" & strScript
If clsEngine IsNot Nothing Then
Evaluate(strCommand, bSilent:=bSilent, bSeparateThread:=bSeparateThread)
expTemp = GetSymbol(strVariableName, bSilent:=bSilent)
expTemp = GetSymbol(strVariableName, bSilent:=True)
'Very important to remove the variable after getting it othewise could be returning wrong variable later if a command gives an error
Evaluate("rm(" & strVariableName & ")", bSilent:=bSilent, bSeparateThread:=bSeparateThread)
End If
Return expTemp
End Function
Expand Down
4 changes: 2 additions & 2 deletions instat/dlgSpells.vb
Original file line number Diff line number Diff line change
Expand Up @@ -73,15 +73,15 @@ Public Class dlgSpells
ucrReceiverDate.Selector = ucrSelectorForSpells
ucrReceiverDate.AddIncludedMetadataProperty("Climatic_Type", {Chr(34) & "date" & Chr(34)})
ucrReceiverDate.bAutoFill = True
ucrReceiverDate.strSelectorHeading = "Date variables"
ucrReceiverDate.strSelectorHeading = "Date Variables"

ucrReceiverDOY.SetParameter(New RParameter("day", 0))
ucrReceiverDOY.SetParameterIsString()
ucrReceiverDOY.bWithQuotes = False
ucrReceiverDOY.Selector = ucrSelectorForSpells
ucrReceiverDOY.AddIncludedMetadataProperty("Climatic_Type", {Chr(34) & "doy" & Chr(34)})
ucrReceiverDOY.bAutoFill = True
ucrReceiverDOY.strSelectorHeading = "Day variables"
ucrReceiverDOY.strSelectorHeading = "Day Variables"

clsSubSpellLength1.SetRCommand("list")
clsMaxValueList.SetRCommand("list")
Expand Down
7 changes: 6 additions & 1 deletion instat/dlgStartofRains.vb
Original file line number Diff line number Diff line change
Expand Up @@ -62,28 +62,33 @@ Public Class dlgStartofRains
ucrReceiverStation.Selector = ucrSelectorForStartofRains
ucrReceiverStation.AddIncludedMetadataProperty("Climatic_Type", {Chr(34) & "station" & Chr(34)})
ucrReceiverStation.bAutoFill = True
ucrReceiverStation.strSelectorHeading = "Station Variables"

ucrReceiverDate.SetParameter(New RParameter("date", 0, False))
ucrReceiverDate.SetParameterIsString()
ucrReceiverDate.Selector = ucrSelectorForStartofRains
ucrReceiverDate.AddIncludedMetadataProperty("Climatic_Type", {Chr(34) & "date" & Chr(34)})
ucrReceiverDate.bAutoFill = True
ucrReceiverDate.strSelectorHeading = "Date Variables"

ucrReceiverDOY.SetParameter(New RParameter("day", 0))
ucrReceiverDOY.SetParameterIsString()
ucrReceiverDOY.bWithQuotes = False
ucrReceiverDOY.Selector = ucrSelectorForStartofRains
ucrReceiverDOY.AddIncludedMetadataProperty("Climatic_Type", {Chr(34) & "doy" & Chr(34)})
ucrReceiverDOY.bAutoFill = True
ucrReceiverDOY.strSelectorHeading = "Day Variables"

ucrReceiverRainfall.SetParameter(New RParameter("data", 0))
ucrReceiverRainfall.SetParameterIsRFunction()
ucrReceiverRainfall.bWithQuotes = False
' ucrReceiverRainfall.SetParameterIncludeArgumentName(False)
ucrReceiverRainfall.strSelectorHeading = "Rain Variables"
ucrReceiverRainfall.Selector = ucrSelectorForStartofRains
ucrReceiverRainfall.AddIncludedMetadataProperty("Climatic_Type", {Chr(34) & "rain" & Chr(34)})
ucrReceiverRainfall.bAutoFill = True

ucrReceiverYear.strSelectorHeading = "Year Variables"

'Days
ucrNudFrom.SetParameter(New RParameter("from", 0))
ucrNudFrom.SetMinMax(1, 365)
Expand Down
36 changes: 18 additions & 18 deletions instat/dlgTwoVariableFitModel.Designer.vb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 934d51f

Please sign in to comment.