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

DM-13614: SlurmBatch: fix --time for large walltime #19

Merged
merged 1 commit into from Feb 22, 2018

Conversation

PaulPrice
Copy link
Contributor

Now format walltime as days-hours:minutes instead of just minutes.

@@ -216,6 +216,22 @@ def submitCommand(self, scriptName):
class SlurmBatch(Batch):
"""Batch submission with Slurm"""

@staticmethod
def formatWalltime(walltime):
"""Format walltime as days-hours:minutes"""

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If not documenting in numpy docstring style, at least change to the following, so that people can see that walltime is in seconds without having to read the code:

"""Format walltime (in seconds) as days-hours:minutes"""

Now format walltime as days-hours:minutes instead of just minutes.
@PaulPrice PaulPrice merged commit 53cf898 into master Feb 22, 2018
@ktlim ktlim deleted the tickets/DM-13614 branch August 25, 2018 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants