ModelFlowIb 2.57__tar.gz → 2.59__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {modelflowib-2.57 → modelflowib-2.59}/ModelFlowIb.egg-info/PKG-INFO +1 -1
- {modelflowib-2.57 → modelflowib-2.59}/PKG-INFO +1 -1
- {modelflowib-2.57 → modelflowib-2.59}/model_latex_class.py +3 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelclass.py +13 -8
- {modelflowib-2.57 → modelflowib-2.59}/pyproject.toml +1 -1
- {modelflowib-2.57 → modelflowib-2.59}/ModelFlowIb.egg-info/SOURCES.txt +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/ModelFlowIb.egg-info/dependency_links.txt +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/ModelFlowIb.egg-info/requires.txt +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/ModelFlowIb.egg-info/top_level.txt +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelBLfunk.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_Excel.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_cvx.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_doable.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_dynare.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_financial_stability.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_ifrs9.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_latex.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/model_run_numba.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelclass2.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeldash.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeldashboot.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeldashsidebar.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeldekom.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeldiff.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeldisplay.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelfeedback.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelgrab.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelgrabwf2.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelhelp.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelinvert.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeljupyter.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeljupytermagic.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelmacrograb.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelmanipulation.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelmf.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelnet.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelnewton.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelnormalize.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelpattern.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelpatternrev.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelreport.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelsandbox.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelsandbox_Mixin.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeltodo.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeluserfunk.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modeluserfunk_old.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelvis.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelwidget.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelwidget_input.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/modelwidget_shinypy.py +0 -0
- {modelflowib-2.57 → modelflowib-2.59}/setup.cfg +0 -0
|
@@ -142,7 +142,7 @@ class BaseModel():
|
|
|
142
142
|
tabcomplete=True, previousbase=False, use_preorder=True, normalized=True,safeorder= False,
|
|
143
143
|
var_description={}, model_description = '',
|
|
144
144
|
var_groups = {}, reports = {}, equations_latex='',
|
|
145
|
-
eviews_dict = {},use_fbmin=
|
|
145
|
+
eviews_dict = {},use_fbmin= False,
|
|
146
146
|
substitution = {},
|
|
147
147
|
**kwargs):
|
|
148
148
|
''' initialize a model'''
|
|
@@ -2203,7 +2203,7 @@ class Model_help_Mixin():
|
|
|
2203
2203
|
|
|
2204
2204
|
filelist = (list(dir.glob('*readme.ipynb'))
|
|
2205
2205
|
+ [f for f in sorted(dir.glob('*.ipynb'))
|
|
2206
|
-
if not f.stem.endswith('readme')])
|
|
2206
|
+
if not f.stem.lower() .endswith('readme')])
|
|
2207
2207
|
|
|
2208
2208
|
for i, notebook in enumerate(filelist):
|
|
2209
2209
|
# print(notebook)
|
|
@@ -2430,11 +2430,12 @@ class Dekomp_Mixin():
|
|
|
2430
2430
|
eksperiments = [(vt, t) for vt in sterms for t in calc_per]
|
|
2431
2431
|
if time_att:
|
|
2432
2432
|
...
|
|
2433
|
-
smallalt = altdf_.loc[:, vars].copy(deep=True) # for speed
|
|
2434
|
-
smallbase = smallalt.shift().copy() # for speed
|
|
2433
|
+
smallalt = altdf_.loc[:, vars].copy(deep=True).astype('float64') # for speed
|
|
2434
|
+
smallbase = smallalt.shift().copy().astype('float64') # for speed
|
|
2435
2435
|
else:
|
|
2436
|
-
smallalt = altdf_.loc[:, vars].copy(deep=True) # for speed
|
|
2437
|
-
smallbase = basedf_.loc[:, vars].copy(deep=True) # for speed
|
|
2436
|
+
smallalt = altdf_.loc[:, vars].copy(deep=True).astype('float64') # for speed
|
|
2437
|
+
smallbase = basedf_.loc[:, vars].copy(deep=True).astype('float64') # for speed
|
|
2438
|
+
# print(f'{smallalt.dtypes=}')
|
|
2438
2439
|
# make a dataframe for each experiment
|
|
2439
2440
|
alldf = {e: smallalt.copy() for e in eksperiments}
|
|
2440
2441
|
for e in eksperiments:
|
|
@@ -2489,7 +2490,8 @@ class Dekomp_Mixin():
|
|
|
2489
2490
|
|
|
2490
2491
|
# a dataframe with summaries of growth
|
|
2491
2492
|
diff_growth_index = diff_level.index[:-1]
|
|
2492
|
-
diff_growth = pd.DataFrame(index=diff_growth_index, columns=print_per)
|
|
2493
|
+
diff_growth = pd.DataFrame(0.0,index=diff_growth_index, columns=print_per)
|
|
2494
|
+
# print(diff_growth.dtypes)
|
|
2493
2495
|
diff_growth.loc[diff_growth.index[0],print_per] = smallbase.loc[:,varnavn].pct_change().loc[print_per] * 100.
|
|
2494
2496
|
diff_growth.loc[diff_growth.index[1],print_per] = smallalt.loc[:,varnavn].pct_change().loc[print_per] * 100.
|
|
2495
2497
|
diff_growth.loc[diff_growth.index[2],print_per] = (diff_growth.loc[diff_growth.index[1],print_per]-
|
|
@@ -3476,7 +3478,10 @@ class Graph_Mixin():
|
|
|
3476
3478
|
self.fbaut = {k:v for k,v in sorted( a.items(), key=lambda x: x[1], reverse=True)}
|
|
3477
3479
|
|
|
3478
3480
|
self.fblist = [v for v in self.fbhubs.keys()]
|
|
3479
|
-
except:
|
|
3481
|
+
except Exception as e:
|
|
3482
|
+
if self.use_fbmin:
|
|
3483
|
+
|
|
3484
|
+
print(f'In minimum feedback order {e} ')
|
|
3480
3485
|
...
|
|
3481
3486
|
if self.use_fbmin:
|
|
3482
3487
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|