MCPcopy Create free account
hub / github.com/NatLabRockies/PINNSTRIPES / roundSteps

Function roundSteps

pinn_spm_param/postProcess/plotManyLosses.py:18–27  ·  view source on GitHub ↗
(steps)

Source from the content-addressed store, hash-verified

16
17
18def roundSteps(steps):
19 if max(steps) >= 1000:
20 start, end = 0, round(max(steps), -3)
21 elif max(steps) >= 100:
22 start, end = 0, round(max(steps), -2)
23 elif max(steps) >= 10:
24 start, end = 0, round(max(steps), -1)
25 else:
26 start, end = 0, max(steps)
27 return start, end
28
29
30def getLossesFolder(rootFolder, prefix="LogFin"):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected