Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI progress bar or textual progress output #479

Open
hyanwong opened this issue Oct 16, 2024 · 1 comment
Open

CLI progress bar or textual progress output #479

hyanwong opened this issue Oct 16, 2024 · 1 comment

Comments

@hyanwong
Copy link
Contributor

When running SLiM for a large simulation on a cluster (i.e. using the command-line), it would be pretty useful to get some idea of the amount of time the simulation is expected to take. While this is (obviously) never going to be precise, presumably a good approximation would be to output the number of elapsed generations somehow, possibly using a progress bar? If the maximum number of generations is known in advance, such a bar (or simple text output, e.g. "generation 100 of 10000: 1%") could be used as an estimate of the proportion of time taken.

@bhaller
Copy link
Contributor

bhaller commented Oct 16, 2024

Hi @hyanwong. People often do this in their script, with something like:

first() {
catn("Tick " + community.tick + "...");
}

But I agree that providing this as a built-in feature, activated with a command-line flag like "-progress" or some such, would be nice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants