Skip to content
Snippets Groups Projects
Commit 37950e34 authored by Andrew E. Torda's avatar Andrew E. Torda
Browse files

Cleaning comments.

parent 8c5ef64f
No related branches found
No related tags found
No related merge requests found
...@@ -106,7 +106,8 @@ Please run the program from somewhere other than %s` ...@@ -106,7 +106,8 @@ Please run the program from somewhere other than %s`
return nil, fmt.Errorf(existErr, err) // The file exists.. return nil, fmt.Errorf(existErr, err) // The file exists..
} }
// setupRun does things like get the cooling rate, seed the random numbers. // setupRun does things like get the cooling rate, seed the random numbers,
// open files for writing output.
func setupRun(mcPrm *McPrm, cprm *cprm) error { func setupRun(mcPrm *McPrm, cprm *cprm) error {
var err error var err error
cprm.rand = rand.New(rand.NewSource(int64(getSeed()))) cprm.rand = rand.New(rand.NewSource(int64(getSeed())))
......
...@@ -21,7 +21,7 @@ import ( ...@@ -21,7 +21,7 @@ import (
"example.com/ackley_mc/mc_work" "example.com/ackley_mc/mc_work"
) )
// startrun is what happens when you click on the form's button to start // startrun is called when you click on the form's button to start
// a calculation. // a calculation.
func startrun(genParams genParams, form *widget.Form, mcPrm *mcwork.McPrm) { func startrun(genParams genParams, form *widget.Form, mcPrm *mcwork.McPrm) {
form.Disable() form.Disable()
...@@ -164,7 +164,6 @@ func getmcprm(rd fyne.URIReadCloser, err error, genParams genParams, reload func ...@@ -164,7 +164,6 @@ func getmcprm(rd fyne.URIReadCloser, err error, genParams genParams, reload func
} }
// rdwork is called after the file open dialog gets "OK" // rdwork is called after the file open dialog gets "OK"
//func rdwork(mcPrm *mcwork.McPrm, parent fyne.Window, reload func()) {
func rdwork(genParams genParams, reload func()) { func rdwork(genParams genParams, reload func()) {
getter := func(rd fyne.URIReadCloser, err error) { getter := func(rd fyne.URIReadCloser, err error) {
getmcprm(rd, err, genParams, reload) getmcprm(rd, err, genParams, reload)
...@@ -176,7 +175,7 @@ func rdwork(genParams genParams, reload func()) { ...@@ -176,7 +175,7 @@ func rdwork(genParams genParams, reload func()) {
t.SetLocation(y) // If there was an error, we just use default location t.SetLocation(y) // If there was an error, we just use default location
} }
} }
t.Show() // set an error and see if anybody notices t.Show()
} }
// mcWrap is run in the background so the interface does not block. // mcWrap is run in the background so the interface does not block.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment