Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Vasudevan, Rama K
pycroscopy
Commits
41fdc4ec
Commit
41fdc4ec
authored
Dec 04, 2017
by
syz
Browse files
Small edits for resuming computation
parent
ac711b42
Changes
1
Hide whitespace changes
Inline
Side-by-side
pycroscopy/processing/process.py
View file @
41fdc4ec
...
...
@@ -215,6 +215,7 @@ class Process(object):
"""
The purpose of this function is to allow processes to resume from partly computed results
Start with self.h5_results_grp
"""
raise
NotImplementedError
(
'Please override the _get_existing_datasets specific to your process'
)
...
...
@@ -231,9 +232,12 @@ class Process(object):
-------
"""
self
.
_create_results_datasets
()
self
.
_start_pos
=
0
if
self
.
_start_pos
==
0
:
# starting fresh
self
.
_create_results_datasets
()
else
:
# resuming from previous checkpoint
self
.
_get_existing_datasets
()
self
.
_read_data_chunk
()
while
self
.
data
is
not
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment