Skip to content

Commit 4a68fb1

Browse files
authored
Merge pull request #109 from SmithSamuelM/main
increased maximum number of log cycles to 999 from 99
2 parents e3b9635 + 3058bad commit 4a68fb1

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/hio/base/hier/hogging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def __init__(self, iops=None, nabe=Nabes.afdo, base="", filed=True,
269269
raise HierError(f"For non-zero count one of {cycleSpan=} or "
270270
f"{cycleSize=} must be non-zero")
271271

272-
self.cycleCount = max(min(cycleCount, 99), 0)
272+
self.cycleCount = max(min(cycleCount, 999), 0)
273273
self.cycleSpan = cycleSpan
274274
self.cycleSize = cycleSize
275275
self.cyclePaths = [] # need to init
@@ -297,7 +297,7 @@ def __init__(self, iops=None, nabe=Nabes.afdo, base="", filed=True,
297297
self.cyclePaths = []
298298
for k in range(1, self.cycleCount + 1):
299299
root, ext = os.path.splitext(self.path)
300-
path = f"{root}_{k:02}{ext}" # ext includes leading dot
300+
path = f"{root}_{k:03}{ext}" # ext includes leading dot
301301
self.cyclePaths.append(path)
302302
# trial open to ensure can make
303303
try:

tests/base/hier/test_hogging.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ def test_hog_log(mockHelpingNowIso8601):
190190
Hog._clearall() # clear Hog.Instances for debugging
191191

192192
@namify
193-
@registerify
194193
@dataclass
195194
class LocationBag(TymeDom):
196195
"""Vector Bag dataclass

0 commit comments

Comments
 (0)