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

More duration and memory unit syntax sugar #921

Closed
pditommaso opened this issue Nov 11, 2018 · 0 comments
Closed

More duration and memory unit syntax sugar #921

pditommaso opened this issue Nov 11, 2018 · 0 comments
Milestone

Comments

@pditommaso
Copy link
Member

The goal of a this issue is to extend support for duration and memory unit syntax so that:

  1. it is possible to define expression mixing numbers and memory or duration units as it's possible in the workflow script. For example:
    process.memory = { 1_000 * 1.GB }
    
  2. Easily convert a number value to a duration or memory unit respectively using toDuration or toMemory methods. For example:
    1_000.toMemory() 
    3_600.toDuration()
    
  3. Implicitly import Duration and MemoryUnit classes so that it is possibile to use them without the need to import explicitly or use the full package name.
@pditommaso pditommaso added this to the v19.1.0 milestone Nov 12, 2018
olifly pushed a commit to wuxi-nextcode/nextflow-public that referenced this issue Nov 13, 2018
Signed-off-by: Ólafur Haukur Flygenring <olafurh@wuxinextcode.com>
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

No branches or pull requests

1 participant