rda-python-dsarch 1.0.15__tar.gz → 1.0.16__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.
Files changed (18) hide show
  1. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/PKG-INFO +1 -1
  2. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/pyproject.toml +1 -1
  3. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/PgMeta.py +1 -4
  4. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/dsarch.py +4 -4
  5. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/PKG-INFO +1 -1
  6. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/LICENSE +0 -0
  7. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/MANIFEST.in +0 -0
  8. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/README.md +0 -0
  9. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/setup.cfg +0 -0
  10. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/PgArch.py +0 -0
  11. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/__init__.py +0 -0
  12. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/dsarch.usg +0 -0
  13. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  14. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  15. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  16. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  17. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  18. {rda_python_dsarch-1.0.15 → rda_python_dsarch-1.0.16}/tests/test_dsarch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.15
3
+ Version: 1.0.16
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dsarch"
7
- version = "1.0.15"
7
+ version = "1.0.16"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -592,7 +592,7 @@ def process_meta_gather(cate, logact = PgLOG.LOGWRN):
592
592
  cmd += ary[0]
593
593
  if PgSIG.start_background(cmd, act, opt, 1):
594
594
  cnt += 1
595
- if PgLOG.PGLOG['DSCHECK'] and cnt > 0 and (cnt%20) == 0:
595
+ if PgLOG.PGLOG['DSCHECK'] and cnt > 0 and (cnt%10) == 0:
596
596
  PgCMD.add_dscheck_dcount(10, 0, logact)
597
597
  elif PgLOG.PGLOG['SYSERR']:
598
598
  PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
@@ -608,9 +608,6 @@ def process_meta_gather(cate, logact = PgLOG.LOGWRN):
608
608
  for tidx in TIDXS:
609
609
  PgLOG.pgsystem("{}{}".format(sx, tidx), act, opt)
610
610
 
611
- if PgLOG.PGLOG['DSCHECK'] and (cnt%20) > 0:
612
- PgCMD.add_dscheck_dcount(int((cnt%20)/2), 0, logact)
613
-
614
611
  del META[c]
615
612
  TIDXS = {}
616
613
  switch_logfile()
@@ -390,11 +390,11 @@ def archive_web_files():
390
390
  while True:
391
391
  for i in range(bidx, ALLCNT):
392
392
  if PgSIG.PGSIG['BPROC'] < 2 and i > bidx and ((i-bidx)%20) == 0:
393
- if PgLOG.PGLOG['DSCHECK']:
394
- PgCMD.set_dscheck_dcount(i, chksize, PgOPT.PGOPT['extlog'])
395
393
  if metacnt >= PgOPT.PGOPT['RSMAX']:
396
394
  metatotal += PgMeta.process_metadata("W", metacnt, PgOPT.PGOPT['emerol'])
397
395
  metacnt = 0
396
+ if PgLOG.PGLOG['DSCHECK'] and metacnt == 0:
397
+ PgCMD.set_dscheck_dcount(i, chksize, PgOPT.PGOPT['extlog'])
398
398
  if 'EM' in PgOPT.params:
399
399
  PgLOG.PGLOG['PRGMSG'] = "{}/{} of {} web file{} archived/processed".format(acnt, i, ALLCNT, s)
400
400
  lfile = locfile = PgOPT.params['LF'][i]
@@ -2760,11 +2760,11 @@ def set_webfile_info(include = None):
2760
2760
  reorder = metatotal = metacnt = ADDCNT = MODCNT = 0
2761
2761
  for i in range(bidx, ALLCNT):
2762
2762
  if i > bidx and ((i-bidx)%20) == 0:
2763
- if PgLOG.PGLOG['DSCHECK']:
2764
- PgCMD.add_dscheck_dcount(20, 0, PgOPT.PGOPT['extlog'])
2765
2763
  if metacnt >= PgOPT.PGOPT['RSMAX']:
2766
2764
  metatotal += PgMeta.process_metadata("W", metacnt, PgOPT.PGOPT['emerol'])
2767
2765
  metacnt = 0
2766
+ if PgLOG.PGLOG['DSCHECK'] and metacnt == 0:
2767
+ PgCMD.set_dscheck_dcount(i, 0, PgOPT.PGOPT['extlog'])
2768
2768
  if 'EM' in PgOPT.params:
2769
2769
  PgLOG.PGLOG['PRGMSG'] = "{}/{}/{} of {} {} Web file record{} added/modified/processed".format(ADDCNT, MODCNT, i, ALLCNT, dsid, s)
2770
2770
  if not PgOPT.params['WF'][i]: continue
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.15
3
+ Version: 1.0.16
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch