Skip to content

Commit

Permalink
update issuance balance
Browse files Browse the repository at this point in the history
  • Loading branch information
yellowbean committed Nov 19, 2023
1 parent faf068c commit b0e5268
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion absbox/local/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,9 @@ def calcBondFlow(_bflow, factor):


def tryConvertTupleToDict(xs):
"build a dictionary from a tuple"
if isinstance(xs, tuple):
return {n:v for n, v in xs}
return {n: v for n, v in xs}
elif isinstance(xs, dict):
return xs
else:
Expand All @@ -433,6 +434,7 @@ def allKeysAreString(m: dict):


def earlyReturnNone(fn: callable, v):
"return None if passed in a None, otherwise apply fn and return"
if v is None:
return None
else:
Expand Down
3 changes: 2 additions & 1 deletion absbox/tests/benchmark/us/test08.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
,"stated":"2070-01-01"
,"poolFreq":"MonthEnd"
,"payFreq":["DayOfMonth",20]}
,{'assets':[asset]}
,{'assets':[asset]
,'issuanceStat':{"IssuanceBalance":10000}}
,(("acc01",{"balance":0}),)
,(("A1",{"balance":20_899.37
,"rate":0.025
Expand Down

0 comments on commit b0e5268

Please sign in to comment.