Replies: 2 comments 2 replies
-
What is in ios = (
{'disc_rate_ann.xlsx': {'type': 'PandasIO', 'file_type': 'excel'},
'mort_table.xlsx': {'type': 'PandasIO', 'file_type': 'excel'},
'surr_charge_table.xlsx': {'type': 'PandasIO', 'file_type': 'excel'},
'product_spec_table.xlsx': {'type': 'PandasIO', 'file_type': 'excel'},
'model_point_1.xlsx': {'type': 'PandasIO', 'file_type': 'excel'},
'model_point_moneyness.xlsx': {'type': 'PandasIO', 'file_type': 'excel'}})
iospecs = (
{2592819563728: {'type': 'PandasData',
'io': 'disc_rate_ann.xlsx',
'kwargs': {'read_args': {'index_col': 0, 'engine': 'openpyxl'},
'squeeze': True,
'name': 'zero_spot',
'sheet': None}},
2592822659024: {'type': 'PandasData',
'io': 'mort_table.xlsx',
'kwargs': {'read_args': {'index_col': 0, 'engine': 'openpyxl'},
'squeeze': False,
'name': None,
'sheet': None}},
2592822669520: {'type': 'PandasData',
'io': 'surr_charge_table.xlsx',
'kwargs': {'read_args': {'index_col': 0, 'engine': 'openpyxl'},
'squeeze': False,
'name': None,
'sheet': None}},
2592823031376: {'type': 'PandasData',
'io': 'product_spec_table.xlsx',
'kwargs': {'read_args': {'index_col': 0, 'engine': 'openpyxl'},
'squeeze': False,
'name': None,
'sheet': None}},
2592823124432: {'type': 'PandasData',
'io': 'model_point_1.xlsx',
'kwargs': {'read_args': {'index_col': 0, 'engine': 'openpyxl'},
'squeeze': False,
'name': None,
'sheet': None}},
2592823125648: {'type': 'PandasData',
'io': 'model_point_moneyness.xlsx',
'kwargs': {'read_args': {'index_col': 0, 'engine': 'openpyxl'},
'squeeze': False,
'name': None,
'sheet': None}}}) |
Beta Was this translation helpful? Give feedback.
1 reply
-
Maybe it's because the file paths are outside the model. If you want to store the data files inside the model, you should give If you want to store the data files outside the model, you should use this workaround. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I want some advice to export my own model.
I tested "export" function using sample model in lifelib (ex) CashValue_SE and my simple model.
However, when I tried to export my complex model I faced a trouble.
When I typed the command to export the model as below,
"mx.read_model('DMF_20240326').export('DMF_20240326_EX')"
the command works without any error and the folder is also created as below.
However, when I import the exported model, an error occur as below
As you can see, there is an file "Param.csv" in the location the error messege show.
I think the problem is that the pickled file is not made in exported model folder.
Because, my simple model which I succesfuly export has pickled file like "lapse_use" and "mp_use"
Could you give me any advice to solve this problem?
Thanks every time!
Beta Was this translation helpful? Give feedback.
All reactions