Skip to content

Commit

Permalink
always put run numbers in log files -- inconsistency is bad
Browse files Browse the repository at this point in the history
  • Loading branch information
rcoreilly committed Jun 18, 2024
1 parent b56cc32 commit 60f0fb5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions emer/netparams.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,9 @@ func (pr *NetParams) Name() string {
}

// RunName returns standard name simulation run based on params Name()
// and starting run number if > 0 (large models are often run separately)
// and starting run number.
func (pr *NetParams) RunName(startRun int) string {
rn := pr.Name()
if startRun > 0 {
rn += fmt.Sprintf("_%03d", startRun)
}
return rn
return fmt.Sprintf("%s_%03d", pr.Name(), startRun)
}

// Validate checks that the Network has been set
Expand Down

0 comments on commit 60f0fb5

Please sign in to comment.