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

Function roundSteps

pinn_spm_param/postProcess/plotResidualVariation.py:26–35  ·  view source on GitHub ↗
(steps)

Source from the content-addressed store, hash-verified

24
25
26def roundSteps(steps):
27 if max(steps) >= 1000:
28 start, end = 0, round(max(steps), -3)
29 elif max(steps) >= 100:
30 start, end = 0, round(max(steps), -2)
31 elif max(steps) >= 10:
32 start, end = 0, round(max(steps), -1)
33 else:
34 start, end = 0, max(steps)
35 return start, end
36
37
38def readResiduals(filename):

Callers 5

plotProportionFunction · 0.70
plotConvergenceFunction · 0.70
plotLossWeightsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected