-
Notifications
You must be signed in to change notification settings - Fork 717
Update standard types docs #6329
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
Conversation
✅ Deploy Preview for nextflow-docs-staging ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
047f329
to
b9c1c6e
Compare
Makes sense. I was a little unsure about tuple vs tuples in a couple of places, but ended up agreeing with what you wrote. Looks good to me. |
Signed-off-by: Ben Sherman <[email protected]>
Signed-off-by: Ben Sherman <[email protected]>
b9c1c6e
to
3b31199
Compare
`toDays() -> Integer` | ||
: Get the duration value in days (rounded down). | ||
|
||
`toHours() -> long` | ||
`toHours() -> Integer` | ||
: Get the duration value in hours (rounded down). | ||
|
||
`toMillis() -> long` | ||
`toMillis() -> Integer` | ||
: Get the duration value in milliseconds. | ||
|
||
`toMinutes() -> long` | ||
`toMinutes() -> Integer` | ||
: Get the duration value in minutes (rounded down). | ||
|
||
`toSeconds() -> long` | ||
`toSeconds() -> Integer` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should not this be Long
to match the interface
nextflow/modules/nf-lang/src/main/java/nextflow/script/types/MemoryUnit.java
Lines 30 to 50 in d86be1a
long toBytes(); | |
@Description(""" | |
Get the memory value in gigabytes (rounded down). | |
""") | |
long toGiga(); | |
@Description(""" | |
Get the memory value in kilobytes (rounded down). | |
""") | |
long toKilo(); | |
@Description(""" | |
Get the memory value in megabytes (rounded down). | |
""") | |
long toMega(); | |
@Description(""" | |
Get the memory value in terms of a given unit (rounded down). | |
""") | |
long toUnit(String unit); |
Spun-off from #6278 to include just the doc updates and other maintenance work unrelated to the PR
@christopher-hakkaart I addressed the comments you left in that PR here where applicable. Some changes were discarded because they changed the meaning or just didn't fit. Sorry for the mix up. I decided to split up these changes so that they don't get blocked by the other PR