rda-python-common 1.0.25__tar.gz → 1.0.26__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.

Potentially problematic release.


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

Files changed (21) hide show
  1. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/PKG-INFO +1 -1
  2. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/pyproject.toml +1 -1
  3. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgSIG.py +12 -6
  4. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common.egg-info/PKG-INFO +1 -1
  5. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/LICENSE +0 -0
  6. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/README.md +0 -0
  7. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/setup.cfg +0 -0
  8. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgCMD.py +0 -0
  9. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgDBI.py +0 -0
  10. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgFile.py +0 -0
  11. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgLOG.py +0 -0
  12. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgLock.py +0 -0
  13. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgOPT.py +0 -0
  14. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgSplit.py +0 -0
  15. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/PgUtil.py +0 -0
  16. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common/__init__.py +0 -0
  17. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common.egg-info/SOURCES.txt +0 -0
  18. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common.egg-info/dependency_links.txt +0 -0
  19. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common.egg-info/requires.txt +0 -0
  20. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/src/rda_python_common.egg-info/top_level.txt +0 -0
  21. {rda_python_common-1.0.25 → rda_python_common-1.0.26}/test/test_common.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_common
3
- Version: 1.0.25
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
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_common"
7
- version = "1.0.25"
7
+ version = "1.0.26"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -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.25
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