-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow restart check to wait for files to write (#12)
* Allowing restartcheck to wait for missing hdf5 files * Adding debugging information to geos_ats docs * Adding a check for lfs pointer objects
- Loading branch information
Showing
5 changed files
with
142 additions
and
52 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,37 @@ | ||
""" | ||
Entry point for debugging geos_ats | ||
To use this script, do the following: | ||
- Setup your ats environment (using the 'make ats_environment' command) | ||
- Create a copy of this script in the build/integratedTests directory | ||
- Debug this script with a tool like vscode | ||
Note: if you have a copy of the geosPythonPackages repository located | ||
in your user workspace, then this script will attempt to use that version | ||
of geos_ats instead of the one installed in your environment. | ||
""" | ||
|
||
import os | ||
import sys | ||
|
||
|
||
def debug_geos_ats(): | ||
# Check for a copy of geos_ats in the user's workspace to use | ||
# instead of any currently installed in python | ||
user = os.environ.get( 'USER', '' ) | ||
mod_path = f"/usr/workspace/{user}/geosPythonPackages/geos_ats_package" | ||
if os.path.isdir( mod_path ): | ||
sys.path.insert( 0, os.path.join( mod_path ) ) | ||
|
||
# Collect command line args from autogenerated script | ||
fname = os.path.join( os.path.dirname( __file__ ), 'geos_ats.sh' ) | ||
args = open( fname, 'r' ).readlines()[ 1 ].split()[ 1:-1 ] | ||
sys.argv.extend( args ) | ||
|
||
# Run ats | ||
from geos_ats import main | ||
main.main() | ||
|
||
|
||
if __name__ == '__main__': | ||
debug_geos_ats() |
This file was deleted.
Oops, something went wrong.
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