rda-python-miscs 1.0.6__tar.gz → 1.0.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {rda_python_miscs-1.0.6/src/rda_python_miscs.egg-info → rda_python_miscs-1.0.7}/PKG-INFO +1 -1
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/pyproject.toml +1 -1
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/bashqsub.py +8 -8
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/bashqsub.usg +11 -11
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/tcshqsub.py +8 -8
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/tcshqsub.usg +13 -13
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7/src/rda_python_miscs.egg-info}/PKG-INFO +1 -1
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/LICENSE +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/MANIFEST.in +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/README.md +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/setup.cfg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/__init__.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/gdexls.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/gdexls.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/gdexls_standalone.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/pgwget.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdacp.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdacp.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdakill.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdakill.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdals.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdals.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdamod.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdamod.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaown.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaown.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaps.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdaps.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdasub.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdasub.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdazip.py +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs/rdazip.usg +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/SOURCES.txt +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/dependency_links.txt +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/entry_points.txt +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/requires.txt +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/top_level.txt +0 -0
- {rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/tests/test_miscs.py +0 -0
|
@@ -39,7 +39,7 @@ SOPTIONS = { # single-dash option values
|
|
|
39
39
|
'o' : None, # will set to default if not provided
|
|
40
40
|
'e' : None,
|
|
41
41
|
'A' : "P43713000",
|
|
42
|
-
'q' : "
|
|
42
|
+
'q' : "gdex@casper-pbs",
|
|
43
43
|
# 'm' : 'a',
|
|
44
44
|
'm' : 'n',
|
|
45
45
|
}
|
|
@@ -50,9 +50,9 @@ SOPTIONS = { # single-dash option values
|
|
|
50
50
|
def main():
|
|
51
51
|
|
|
52
52
|
aname = 'bashqsub'
|
|
53
|
-
pname = '
|
|
53
|
+
pname = 'gdexqsub'
|
|
54
54
|
PgLOG.set_help_path(__file__)
|
|
55
|
-
|
|
55
|
+
gdexsub = PgLOG.BCHCMDS['PBS']
|
|
56
56
|
coptions = {'cmd' : None, 'cwd' : None, 'env' : None, 'mod' : None, 'res' : 'default'} # customized options
|
|
57
57
|
copts = '|'.join(coptions)
|
|
58
58
|
option = None
|
|
@@ -61,7 +61,7 @@ def main():
|
|
|
61
61
|
if not argv: PgLOG.show_usage(aname)
|
|
62
62
|
PgLOG.PGLOG['LOGFILE'] = pname + ".log"
|
|
63
63
|
PgLOG.cmdlog("{} {}".format(aname, ' '.join(argv)))
|
|
64
|
-
if not PgLOG.valid_command(
|
|
64
|
+
if not PgLOG.valid_command(gdexsub): PgLOG.pglog("{}: miss {} command to submit batch job".format(gdexsub, PgLOG.PGLOG['PBSNAME']), PgLOG.LGWNEX)
|
|
65
65
|
|
|
66
66
|
while argv:
|
|
67
67
|
arg = argv.pop(0)
|
|
@@ -80,7 +80,7 @@ def main():
|
|
|
80
80
|
if option == "env": option = 'v'
|
|
81
81
|
continue
|
|
82
82
|
|
|
83
|
-
if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg,
|
|
83
|
+
if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg, gdexsub), PgLOG.LGEREX)
|
|
84
84
|
if arg.find(' ') > -1 and not re.match(r'^[\'\"].*[\'\"]$', arg): # quote string with space but not quoted yet
|
|
85
85
|
if arg.find("'") > -1:
|
|
86
86
|
arg = '"{}"'.format(arg)
|
|
@@ -111,10 +111,10 @@ def main():
|
|
|
111
111
|
if not cmd: PgLOG.pglog(coptions['cmd'] + ": Cannot find given command to run", PgLOG.LGWNEX)
|
|
112
112
|
if args: cmd += " " + args
|
|
113
113
|
|
|
114
|
-
sbuf = build_bash_script(cmd, coptions,
|
|
114
|
+
sbuf = build_bash_script(cmd, coptions, gdexsub)
|
|
115
115
|
PgLOG.pglog(sbuf, PgLOG.MSGLOG)
|
|
116
116
|
PgLOG.PGLOG['ERR2STD'] = ['bind mouting']
|
|
117
|
-
PgLOG.pgsystem(
|
|
117
|
+
PgLOG.pgsystem(gdexsub, PgLOG.LOGWRN, 6, sbuf)
|
|
118
118
|
PgLOG.PGLOG['ERR2STD'] = []
|
|
119
119
|
|
|
120
120
|
sys.exit(0)
|
|
@@ -122,7 +122,7 @@ def main():
|
|
|
122
122
|
#
|
|
123
123
|
# build bash script to submit a PBS batch job
|
|
124
124
|
#
|
|
125
|
-
def build_bash_script(cmd, coptions,
|
|
125
|
+
def build_bash_script(cmd, coptions, gdexsub):
|
|
126
126
|
|
|
127
127
|
buf = "#!/usr/bin/bash\n\n" # qsub starting bash script
|
|
128
128
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
To submit a job execution as a batch job in bash script on a PBS node via 'qsub'.
|
|
3
3
|
|
|
4
|
-
Usage:
|
|
5
|
-
|
|
4
|
+
Usage: bashqsub [qsub-options] [-cwd WorkDir] [-env EnvironmentPairs] \
|
|
5
|
+
[-mod Modules] [-res Reservation] -cmd Command [cmd-options]
|
|
6
6
|
|
|
7
7
|
- qsub-options, accepts options that can be passed to 'qsub' in a bash script.
|
|
8
8
|
Check qsub man page for help on the PBS batch options. Here is the list of
|
|
9
9
|
qsub options that are included at default:
|
|
10
|
-
-o LOGPATH/
|
|
11
|
-
-e LOGPATH/
|
|
10
|
+
-o LOGPATH/gdexqsub/
|
|
11
|
+
-e LOGPATH/gdexqsub/
|
|
12
12
|
-A P43713000
|
|
13
13
|
-m a
|
|
14
|
-
-q
|
|
14
|
+
-q gdex
|
|
15
15
|
-l walltime=6:00:00,select=1:node=1:mem=1gb
|
|
16
16
|
|
|
17
17
|
- Option -cwd, set the working directory for the Command to be executed. If
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
A bash script example:
|
|
34
34
|
#!/usr/bin/bash
|
|
35
35
|
|
|
36
|
-
#PBS -o /gpfs/u/home/
|
|
37
|
-
#PBS -e /gpfs/u/home/
|
|
36
|
+
#PBS -o /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
|
|
37
|
+
#PBS -e /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
|
|
38
38
|
#PBS -A P43713000
|
|
39
|
-
#PBS -q
|
|
39
|
+
#PBS -q gdex@casper-pbs
|
|
40
40
|
#PBS -m n
|
|
41
41
|
#PBS -N dsrqst
|
|
42
42
|
#PBS -l walltime=1:00:00
|
|
@@ -56,9 +56,9 @@ module load conda
|
|
|
56
56
|
module load grib-util
|
|
57
57
|
module load wgrib2
|
|
58
58
|
|
|
59
|
-
conda activate /glade/work/
|
|
59
|
+
conda activate /glade/work/gdexdata/conda-envs/pg-casper
|
|
60
60
|
|
|
61
|
-
echo /
|
|
62
|
-
/
|
|
61
|
+
echo /glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d277000 PR -RI 750748 -b -d
|
|
62
|
+
/glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d277000 PR -RI 750748 -b -d
|
|
63
63
|
|
|
64
64
|
date
|
|
@@ -39,7 +39,7 @@ SOPTIONS = { # single-dash option values
|
|
|
39
39
|
'o' : None, # will set to default if not provided
|
|
40
40
|
'e' : None,
|
|
41
41
|
'A' : "P43713000",
|
|
42
|
-
'q' : "
|
|
42
|
+
'q' : "gdex@casper-pbs",
|
|
43
43
|
# 'm' : 'a',
|
|
44
44
|
'm' : 'n',
|
|
45
45
|
}
|
|
@@ -50,9 +50,9 @@ SOPTIONS = { # single-dash option values
|
|
|
50
50
|
def main():
|
|
51
51
|
|
|
52
52
|
aname = 'tcshqsub'
|
|
53
|
-
pname = '
|
|
53
|
+
pname = 'gdexqsub'
|
|
54
54
|
PgLOG.set_help_path(__file__)
|
|
55
|
-
|
|
55
|
+
gdexsub = PgLOG.BCHCMDS['PBS']
|
|
56
56
|
coptions = {'cmd' : None, 'cwd' : None, 'env' : None, 'mod' : None, 'res' : 'default'} # customized options
|
|
57
57
|
copts = '|'.join(coptions)
|
|
58
58
|
option = None
|
|
@@ -61,7 +61,7 @@ def main():
|
|
|
61
61
|
if not argv: PgLOG.show_usage(aname)
|
|
62
62
|
PgLOG.PGLOG['LOGFILE'] = pname + ".log"
|
|
63
63
|
PgLOG.cmdlog("{} {}".format(aname, ' '.join(argv)))
|
|
64
|
-
if not PgLOG.valid_command(
|
|
64
|
+
if not PgLOG.valid_command(gdexsub): PgLOG.pglog("{}: miss {} command to submit batch job".format(gdexsub, PgLOG.PGLOG['PBSNAME']), PgLOG.LGWNEX)
|
|
65
65
|
|
|
66
66
|
while argv:
|
|
67
67
|
arg = argv.pop(0)
|
|
@@ -80,7 +80,7 @@ def main():
|
|
|
80
80
|
if option == "env": option = 'v'
|
|
81
81
|
continue
|
|
82
82
|
|
|
83
|
-
if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg,
|
|
83
|
+
if not option: PgLOG.pglog("{}: Value passed in without leading option for {}".format(arg, gdexsub), PgLOG.LGEREX)
|
|
84
84
|
if arg.find(' ') > -1 and not re.match(r'^[\'\"].*[\'\"]$', arg): # quote string with space but not quoted yet
|
|
85
85
|
if arg.find("'") > -1:
|
|
86
86
|
arg = '"{}"'.format(arg)
|
|
@@ -111,10 +111,10 @@ def main():
|
|
|
111
111
|
if not cmd: PgLOG.pglog(coptions['cmd'] + ": Cannot find given command to run", PgLOG.LGWNEX)
|
|
112
112
|
if args: cmd += " " + args
|
|
113
113
|
|
|
114
|
-
sbuf = build_tcsh_script(cmd, coptions,
|
|
114
|
+
sbuf = build_tcsh_script(cmd, coptions, gdexsub)
|
|
115
115
|
PgLOG.pglog(sbuf, PgLOG.MSGLOG)
|
|
116
116
|
PgLOG.PGLOG['ERR2STD'] = ['bind mouting']
|
|
117
|
-
PgLOG.pgsystem(
|
|
117
|
+
PgLOG.pgsystem(gdexsub, PgLOG.LOGWRN, 6, sbuf)
|
|
118
118
|
PgLOG.PGLOG['ERR2STD'] = []
|
|
119
119
|
|
|
120
120
|
sys.exit(0)
|
|
@@ -122,7 +122,7 @@ def main():
|
|
|
122
122
|
#
|
|
123
123
|
# build tcsh script to submit a PBS batch job
|
|
124
124
|
#
|
|
125
|
-
def build_tcsh_script(cmd, coptions,
|
|
125
|
+
def build_tcsh_script(cmd, coptions, gdexsub):
|
|
126
126
|
|
|
127
127
|
buf = "#!/bin/tcsh\n\n" # sbatch starting tcsh script
|
|
128
128
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
|
|
2
2
|
To submit a job execution as a batch job in tcsh script on a PBS node via 'qsub'.
|
|
3
3
|
|
|
4
|
-
Usage:
|
|
5
|
-
|
|
4
|
+
Usage: tcshqsub [qsub-options] [-cwd WorkDir] [-env EnvironmentPairs] \
|
|
5
|
+
[-mod Modules] [-res Reservation] -cmd Command [cmd-options]
|
|
6
6
|
|
|
7
7
|
- qsub-options, accepts options that can be passed to 'qsub' in a tcsh script.
|
|
8
8
|
Check qsub man page for help on the PBS batch options. Here is the list of
|
|
9
9
|
qsub options that are included at default:
|
|
10
|
-
-o LOGPATH/
|
|
11
|
-
-e LOGPATH/
|
|
10
|
+
-o LOGPATH/gdexqsub/
|
|
11
|
+
-e LOGPATH/gdexqsub/
|
|
12
12
|
-A P43713000
|
|
13
13
|
-m a
|
|
14
|
-
-q
|
|
14
|
+
-q gdex
|
|
15
15
|
-l walltime=6:00:00,select=1:node=1:mem=1gb
|
|
16
16
|
|
|
17
17
|
- Option -cwd, set the working directory for the Command to be executed. If
|
|
@@ -33,17 +33,17 @@
|
|
|
33
33
|
A tash script example:
|
|
34
34
|
#!/bin/tcsh
|
|
35
35
|
|
|
36
|
-
#PBS -o /gpfs/u/home/
|
|
37
|
-
#PBS -e /gpfs/u/home/
|
|
36
|
+
#PBS -o /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
|
|
37
|
+
#PBS -e /gpfs/u/home/gdexdata/dssdb/log/gdexqsub/
|
|
38
38
|
#PBS -A P43713000
|
|
39
|
-
#PBS -q
|
|
39
|
+
#PBS -q gdex@casper-pbs
|
|
40
40
|
#PBS -m a
|
|
41
41
|
#PBS -N dsrqst
|
|
42
42
|
#PBS -l walltime=12:00:00
|
|
43
43
|
#PBS -l select=1:mem=20gb
|
|
44
44
|
setenv HOME /gpfs/u/home/davestep
|
|
45
|
-
source /etc/profile.d/z00_modules.
|
|
46
|
-
source /glade/u/apps/opt/conda/etc/profile.d/conda.
|
|
45
|
+
source /etc/profile.d/z00_modules.csh
|
|
46
|
+
source /glade/u/apps/opt/conda/etc/profile.d/conda.csh
|
|
47
47
|
source /gpfs/u/home/davestep/.tcshrc
|
|
48
48
|
pwd; hostname; date
|
|
49
49
|
|
|
@@ -56,7 +56,7 @@ module load conda
|
|
|
56
56
|
module load grib-util
|
|
57
57
|
module load wgrib2
|
|
58
58
|
|
|
59
|
-
conda activate /glade/work/
|
|
59
|
+
conda activate /glade/work/gdexdata/conda-envs/pg-casper
|
|
60
60
|
|
|
61
|
-
echo /
|
|
62
|
-
/
|
|
61
|
+
echo /glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d628000 SP -RI 729708 -NP -b -d
|
|
62
|
+
/glade/work/gdexdata/conda-envs/pg-casper/bin/dsrqst d628000 SP -RI 729708 -NP -b -d
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/entry_points.txt
RENAMED
|
File without changes
|
{rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/requires.txt
RENAMED
|
File without changes
|
{rda_python_miscs-1.0.6 → rda_python_miscs-1.0.7}/src/rda_python_miscs.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|