More fish ...

This commit is contained in:
Kareem Sorathia
2025-07-28 21:49:25 -04:00
parent 0372758129
commit 3354d5b0f5
2 changed files with 4 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ class GameraPipe(object):
for data,vID in coords:
datasets = []
with alive_bar(NrX,title=f"{titStr}/{vID}".ljust(kdefs.barLab),length=kdefs.barLen,bar=kdefs.barDef) as bar, \
with alive_bar(NrX,title=f"{titStr}/{vID}".ljust(kdefs.barLab),length=kdefs.barLen,bar=kdefs.barDef2) as bar, \
ProcessPoolExecutor(max_workers=self.nWorkers) as executor:
futures = [executor.submit(kh5.PullVarLoc, fIn, vID, loc=loc) for fIn, loc in files]
for future in as_completed(futures):
@@ -328,7 +328,7 @@ class GameraPipe(object):
else:
titStr = None
NrX = max(self.Nr,1)
with alive_bar(NrX,title=titStr,length=kdefs.barLen,bar=kdefs.barDef) as bar:
with alive_bar(NrX,title=titStr,length=kdefs.barLen,bar=kdefs.barDef2) as bar:
for (i,j,k) in itertools.product(range(self.Ri),range(self.Rj),range(self.Rk)):
iS = i *self.dNi
jS = j *self.dNj

View File

@@ -111,7 +111,8 @@ vc_cgs = 2.99792458e10 # [cm/s] speed of light
barLen = 30
barLab = 30
#barDef = 'fish'
barDef = alive_progress.animations.bars.bar_factory(tip="><('>", chars='',background='')
barDef = alive_progress.animations.bars.bar_factory(tip="><('>", chars="",background="")
barDef2 = alive_progress.animations.bars.bar_factory('∙○⦿●',tip=" ><>")
#------
# I/O