rda-python-common 1.0.24__py3-none-any.whl → 1.0.26__py3-none-any.whl

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.

Potentially problematic release.


This version of rda-python-common might be problematic. Click here for more details.

@@ -1500,7 +1500,7 @@ def ucar_user_info(userno, logname = None):
1500
1500
  elif pgrec['userno']:
1501
1501
  pgrec['userno'] = userno = int(pgrec['userno'])
1502
1502
  if pgrec['upid']: pgrec['upid'] = int(pgrec['upid'])
1503
- if pgrec['stat_flag']: pgrec['stat_flag'] = 'A' if pgrec['stat_flag'] == '1' else 'C'
1503
+ if pgrec['stat_flag']: pgrec['stat_flag'] = 'A' if pgrec['stat_flag'] == "True" else 'C'
1504
1504
  if pgrec['email'] and re.search(r'(@|\.)ucar\.edu$', pgrec['email'], re.I):
1505
1505
  pgrec['email'] = pgrec['ucaremail']
1506
1506
  pgrec['org_name'] = 'NCAR'
@@ -816,16 +816,22 @@ def get_pbs_info(qopts, multiple = 0, logact = 0, chkcnt = 1):
816
816
  if re.match(r'^-----', line): chkd = 0
817
817
  else:
818
818
  vals = re.split(r'\s+', PgLOG.pgtrim(line))
819
- if len(vals) == kcnt:
819
+ vcnt = len(vals)
820
+ if vcnt == 1:
821
+ if multiple:
822
+ stat[ckeys[kcnt-1]].append(vals[0])
823
+ else:
824
+ stat[ckeys[kcnt-1]] = vals[0]
825
+ break
826
+ elif vcnt > 1:
820
827
  ms = re.match(r'^(\d+)', vals[0])
821
828
  if ms: vals[0] = ms.group(1)
822
- if multiple:
823
- for i in range(kcnt):
829
+ for i in range(vcnt):
830
+ if multiple:
824
831
  stat[ckeys[i]].append(vals[i])
825
- else:
826
- for i in range(kcnt):
832
+ else:
827
833
  stat[ckeys[i]] = vals[i]
828
- break
834
+ if vcnt == kcnt: break
829
835
 
830
836
  return stat
831
837
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 1.0.24
3
+ Version: 1.0.26
4
4
  Summary: RDA Python common library codes shared by other RDA python packages
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-common
@@ -1,15 +1,15 @@
1
1
  rda_python_common/PgCMD.py,sha256=EYjG2Z4zEnvsXE1z-jt5UaNoEKxnOYYiMMzvW6HrKA4,20597
2
- rda_python_common/PgDBI.py,sha256=iGy0SQZsdVbSz2ewTIUK3e-RQBC5eQM9-_XUcFU1c50,74211
2
+ rda_python_common/PgDBI.py,sha256=4r7sglMn1M-wfbsaHIWPcoX3p5JbBNTCuEAu-q1BWhQ,74214
3
3
  rda_python_common/PgFile.py,sha256=756onQnWH_MK8llF0-8b6yV6KC1eY_eCPEkygxeJQQU,98460
4
4
  rda_python_common/PgLOG.py,sha256=DFCQgcmbU04H6Kz9X9nxuFdLA1VNRBQefRvK8LvO9Pw,54273
5
5
  rda_python_common/PgLock.py,sha256=12i84nsGBuifSyPnm8IR63LvHvRuVU573D5QKFlHdOI,22623
6
6
  rda_python_common/PgOPT.py,sha256=JbzLCkJ_RYR95fDCKyT1uxJAddYB6FuPs3L47PxcuKs,55445
7
- rda_python_common/PgSIG.py,sha256=oDXcSnnzW6wKm_cSpFxQZWAo2hpPPTcuNDYhPSNQcRc,35607
7
+ rda_python_common/PgSIG.py,sha256=ZVM9Qz6yIFurwIQJtV5-CFbKOTdFsZ-Rs95SEpDFgNk,35795
8
8
  rda_python_common/PgSplit.py,sha256=QKPbF55m8KCTGmwVwL3uG_nuylCC4FSVfLuXeLjJHbE,8816
9
9
  rda_python_common/PgUtil.py,sha256=OqESKCd72b9g8m8jwjPJhXDtPYlW6G8oSOhwChvz2Cg,48600
10
10
  rda_python_common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
- rda_python_common-1.0.24.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
12
- rda_python_common-1.0.24.dist-info/METADATA,sha256=LtSYAwFwFwOoF4qwTkF4CjGJ4VdTan9JFupfNiTO2wI,716
13
- rda_python_common-1.0.24.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
- rda_python_common-1.0.24.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
15
- rda_python_common-1.0.24.dist-info/RECORD,,
11
+ rda_python_common-1.0.26.dist-info/licenses/LICENSE,sha256=1dck4EAQwv8QweDWCXDx-4Or0S8YwiCstaso_H57Pno,1097
12
+ rda_python_common-1.0.26.dist-info/METADATA,sha256=Bs-u2UnNIq9dSQSzsjlp1u64euzt0pardPKKkk5Nu24,716
13
+ rda_python_common-1.0.26.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
14
+ rda_python_common-1.0.26.dist-info/top_level.txt,sha256=KVQmx7D3DD-jsiheqL8HdTrRE14hpRnZY5_ioMArA5k,18
15
+ rda_python_common-1.0.26.dist-info/RECORD,,