Private
Public Access
1
0
This commit is contained in:
2024-03-13 18:57:18 +01:00
parent 4b83a251db
commit 5149f08de7
9 changed files with 97 additions and 228 deletions

View File

@@ -123,18 +123,18 @@ def cpfit(powerdf, fraclimit=0.0001, nmax=1000):
def getlogarr(maxt):
maxlog10 = np.log10(maxt-5)
dtmin = 10
maxlog10 = np.log10(maxt)
# print(maxlog10,round(maxlog10))
aantal = 10*round(maxlog10)
aantal = 40
logarr = np.arange(aantal+1)/10.
vs = 10.**logarr
res = []
for la in logarr:
try:
v = 5+int(10.**(la))
except ValueError: # pragma: no cover
v = 0
res.append(v)
for v in vs:
if v > dtmin and v<maxt:
res.append(int(v))
logarr = pd.Series(res, dtype='float')
logarr.drop_duplicates(keep='first', inplace=True)