Skip to content

Commit 80a90e0

Browse files
committed
fix readAeson;add PoolWAS
1 parent 2b35d8c commit 80a90e0

File tree

5 files changed

+29
-6
lines changed

5 files changed

+29
-6
lines changed

absbox/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
from .local.cf import readBondsCf,readToCf,readFeesCf,readAccsCf,readPoolsCf,readFlowsByScenarios,readMultiFlowsByScenarios,readFieldsByScenarios
1919
from .local.cf import readInspect, readLedgers, readTriggers
2020
from .local.cf import BondCfHeader
21-
from .local.interface import readAeson, toAeson, fromAeson
21+
from .local.interface import readAeson
2222
from .report import toHtml,OutputType,toExcel
2323

2424
from . import examples
2525

26-
__version__ = version("absbox")
26+
__version__ = version("absbox")

absbox/local/component.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ def mkDs(x):
304304
if pNames:
305305
return mkTag(("PoolScheduleCfPv", [mkLiqMethod(pricingMethod), lmap(mkPid,pNames)]))
306306
return mkTag(("PoolScheduleCfPv", [mkLiqMethod(pricingMethod), None]))
307+
case ("资产池加权利差", pNames) | ("PoolWaSpread", pNames):
308+
if pNames:
309+
return mkTag(("PoolWaSpread", lmap(mkPid,pNames)))
310+
return mkTag(("PoolWaSpread", None))
307311
case ("债券系数", bn) | ("bondFactor", bn):
308312
return mkTag(("BondFactorOf", bn))
309313
case ("债券系数",) | ("bondFactor",):

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,5 @@ lenses
1111
rich
1212
graphviz
1313
dateparser
14-
pyxirr
1514
more-itertools
16-
pytest-notebook
15+
pytest-notebook

setup.cfg

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ install_requires =
4444
deepdiff
4545
dateparser
4646
more-itertools
47-
pyxirr
4847
lenses
4948
xlsxwriter
5049

@@ -53,4 +52,4 @@ minversion = 6.0
5352
addopts = -ra -q
5453
testpaths =
5554
absbox/tests
56-
docs/source/nbsample
55+
docs/source/nbsample

shell.nix

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ pkgs ? import <nixpkgs> {} }:
2+
pkgs.mkShell {
3+
buildInputs = [
4+
pkgs.rustc
5+
pkgs.cargo
6+
pkgs.ninja
7+
pkgs.python313
8+
pkgs.python313Packages.meson-python
9+
pkgs.python313Packages.pillow
10+
pkgs.python313Packages.rpds-py
11+
12+
pkgs.python313Packages.cython
13+
pkgs.zeromq
14+
pkgs.gcc
15+
pkgs.pkg-config
16+
pkgs.glibcLocales
17+
];
18+
LANG = "en_US.UTF-8";
19+
LC_ALL = "en_US.UTF-8";
20+
LD_LIBRARY_PATH = "${pkgs.gcc.cc.lib}/lib:${pkgs.zeromq}/lib";
21+
}

0 commit comments

Comments
 (0)