Skip to content

Commit

Permalink
style: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
florianzwagemaker committed Nov 15, 2021
1 parent 825f175 commit 17bb070
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ViroConstrictor/runconfigs.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@

import yaml


def get_max_local_mem():
avl_mem_bytes = os.sysconf('SC_PAGE_SIZE') * os.sysconf('SC_PHYS_PAGES')
return int(round(avl_mem_bytes/(1024.**2) - 2000, -3))
avl_mem_bytes = os.sysconf("SC_PAGE_SIZE") * os.sysconf("SC_PHYS_PAGES")
return int(round(avl_mem_bytes / (1024.0 ** 2) - 2000, -3))


def SnakemakeConfig(conf, cores, dryrun):
cores = cores - 2
Expand Down

0 comments on commit 17bb070

Please sign in to comment.