Skip to content

Commit

Permalink
Fix a few bugs in proganalysis_waittime.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ziotom78 committed Jun 15, 2023
1 parent 5acb366 commit b73bbf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions proganalysis_waittime.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def load_waittime_polan_analysis(
log.info(
f"Configuration: set {sm} for waitTime {wt}sec ({ii+1}/{nwt}). Analyzing {ncase} cases of voltages:"
)
for jj, vv in track(enumerate(arr_volt), description="Progress..."):
for jj, vv in track(list(enumerate(arr_volt)), description="Progress..."):
vrange = tuple(results[f"{sm}_date_range"][ii, jj])

deltat = TimeDelta(vrange[1] - vrange[0], scale="tai", format="jd").sec
Expand Down Expand Up @@ -239,9 +239,9 @@ def plotting_countmap(metaData, idout=None, path_dir: Path = Path("./")):
vextent = [xmin - xdelta, xmax + xdelta, ymin - ydelta, ymax + ydelta]

for jj, kk in enumerate(vsets[0:3]):
log.info(f"\tSubplot {jj} ({kk})")
print(f"\tSubplot {jj} ({kk})")
curAll = md[kk]
log.info(curAll["count"], "\n")
print(curAll["count"], "\n")

plt.subplot(1, 3, jj + 1)
plt.title(f"{pp} {ll} (set {kk})", {"fontsize": 10})
Expand Down Expand Up @@ -486,7 +486,7 @@ def mkdir_report(self, reportTemplate_file: str = None):
# Saving md
file_report_md = f"report_{self.idcase}.md"
with open(self.output_dir / file_report_md, "wt") as outf:
log.info(
print(
temp.render(
polna=self.metaData["polna"],
date_range=self.date_range[0] + " " + self.date_range[1],
Expand Down

0 comments on commit b73bbf9

Please sign in to comment.