-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/usr/bin/env python | ||
import time | ||
|
||
import logging | ||
|
||
from crh_retrieve import retrieve_all_finished_mods_and_invs | ||
|
||
logging.basicConfig( | ||
level=logging.INFO, | ||
format='{asctime} - {name} - %{levelname} - {message}', | ||
style='{', | ||
) | ||
logger = logging.getLogger(__name__) | ||
|
||
|
||
def crh_wait_for_all_sims_to_finish(): | ||
unfinished = True | ||
while unfinished: | ||
unfinished = retrieve_all_finished_mods_and_invs() | ||
if unfinished: | ||
time.sleep(10) | ||
|
||
|
||
def main(): | ||
crh_wait_for_all_sims_to_finish() | ||
|
||
|
||
if __name__ == '__main__': | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env python | ||
import os | ||
|
||
from crh_add import crh_add | ||
from crh_wait_to_finish import crh_wait_for_all_sims_to_finish | ||
|
||
os.chdir('test00') | ||
crh_add() | ||
crh_wait_for_all_sims_to_finish() | ||
print('Finished the inversions') |