From 37950e345f86eaa960c272d8efb4e5f5c9fce9d4 Mon Sep 17 00:00:00 2001 From: "Andrew E. Torda" <torda@zbh.uni-hamburg.de> Date: Thu, 2 Jun 2022 12:23:12 +0200 Subject: [PATCH] Cleaning comments. --- mc_work/dorun.go | 3 ++- ui/input_tab.go | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mc_work/dorun.go b/mc_work/dorun.go index 1b6a384..cd600b6 100644 --- a/mc_work/dorun.go +++ b/mc_work/dorun.go @@ -106,7 +106,8 @@ Please run the program from somewhere other than %s` 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 { var err error cprm.rand = rand.New(rand.NewSource(int64(getSeed()))) diff --git a/ui/input_tab.go b/ui/input_tab.go index 64b074a..8f0a325 100644 --- a/ui/input_tab.go +++ b/ui/input_tab.go @@ -21,7 +21,7 @@ import ( "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. func startrun(genParams genParams, form *widget.Form, mcPrm *mcwork.McPrm) { form.Disable() @@ -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" -//func rdwork(mcPrm *mcwork.McPrm, parent fyne.Window, reload func()) { func rdwork(genParams genParams, reload func()) { getter := func(rd fyne.URIReadCloser, err error) { getmcprm(rd, err, genParams, reload) @@ -176,7 +175,7 @@ func rdwork(genParams genParams, reload func()) { 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. -- GitLab