Skip to content

Commit

Permalink
Merge pull request #1341 from ComparativeGenomicsToolkit/hal2maf
Browse files Browse the repository at this point in the history
Fix float memory requirement
  • Loading branch information
glennhickey authored Apr 4, 2024
2 parents 04c41a2 + 1ffac73 commit 28a6e2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cactus/shared/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def cactus_override_toil_options(options):

def cactus_clamp_memory(memory_bytes):
""" use the environment variables from --maxMemory and --defaultMemory to clamp a given memory value """
return max(min(int(os.environ['CACTUS_MAX_MEMORY']), memory_bytes), int(os.environ['CACTUS_DEFAULT_MEMORY']))
return max(min(int(os.environ['CACTUS_MAX_MEMORY']), int(memory_bytes)), int(os.environ['CACTUS_DEFAULT_MEMORY']))

def makeURL(path_or_url):
if urlparse(path_or_url).scheme == '':
Expand Down

0 comments on commit 28a6e2c

Please sign in to comment.