Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
rapthor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ResearchAndDevelopment
rapthor
Merge requests
!22
Make sure no division by zero can occur
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Merged
Make sure no division by zero can occur
fix-division-by-zero
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Andre Offringa
requested to merge
fix-division-by-zero
into
master
2 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Compare
master
version 1
e3dad36b
2 years ago
master (base)
and
latest version
latest version
dec7cf7c
1 commit,
2 years ago
version 1
e3dad36b
1 commit,
2 years ago
1 file
+
2
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
rapthor/lib/screen.py
+
2
−
1
Options
@@ -218,7 +218,8 @@ class Screen(object):
@@ -218,7 +218,8 @@ class Screen(object):
# Add additional breaks to gaps_ind to keep memory usage within that available
# Add additional breaks to gaps_ind to keep memory usage within that available
if
len
(
self
.
times_ph
)
>
2
:
if
len
(
self
.
times_ph
)
>
2
:
available_mem_gb
=
cluster
.
get_available_memory
()
available_mem_gb
=
cluster
.
get_available_memory
()
max_ntimes
=
max
(
1
,
int
(
available_mem_gb
/
(
self
.
get_memory_usage
(
cellsize_deg
))))
memory_usage
=
max
(
1
,
self
.
get_memory_usage
(
cellsize_deg
))
max_ntimes
=
max
(
1
,
int
(
available_mem_gb
/
memory_usage
))
check_gaps
=
True
check_gaps
=
True
while
check_gaps
:
while
check_gaps
:
check_gaps
=
False
check_gaps
=
False
Loading