dfm-python 0.1.1__tar.gz → 0.1.2__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.
- {dfm_python-0.1.1 → dfm_python-0.1.2}/PKG-INFO +1 -1
- {dfm_python-0.1.1 → dfm_python-0.1.2}/pyproject.toml +1 -1
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/dfm_python/dfm.py +1 -10
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/test/test_dfm.py +1 -1
- {dfm_python-0.1.1 → dfm_python-0.1.2}/.gitignore +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/.python-version +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/LICENSE +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/MANIFEST.in +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/README.md +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/config/example_config.yaml +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/data/sample_data.csv +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/spec/example_spec.csv +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/__init__.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/dfm_python/__init__.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/dfm_python/config.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/dfm_python/data_loader.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/dfm_python/kalman.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/dfm_python/news.py +0 -0
- {dfm_python-0.1.1/src → dfm_python-0.1.2/src/dfm_python}/utils/__init__.py +0 -0
- {dfm_python-0.1.1/src → dfm_python-0.1.2/src/dfm_python}/utils/data_utils.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/test/__init__.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/test/test_kalman.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/test/test_news.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/src/test/test_synthetic.py +0 -0
- {dfm_python-0.1.1 → dfm_python-0.1.2}/uv.lock +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dfm-python
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.2
|
|
4
4
|
Summary: Dynamic Factor Model (DFM) estimation and nowcasting in Python
|
|
5
5
|
Project-URL: Homepage, https://github.com/yourusername/dfm-python
|
|
6
6
|
Project-URL: Documentation, https://github.com/yourusername/dfm-python#readme
|
|
@@ -21,16 +21,7 @@ except ImportError:
|
|
|
21
21
|
SCIPY_AVAILABLE = False
|
|
22
22
|
|
|
23
23
|
# Import rem_nans_spline from utils to avoid duplication
|
|
24
|
-
import
|
|
25
|
-
from pathlib import Path
|
|
26
|
-
try:
|
|
27
|
-
from ..utils.data_utils import rem_nans_spline
|
|
28
|
-
except (ImportError, ValueError):
|
|
29
|
-
# Fallback: add parent directory to path if relative import fails
|
|
30
|
-
utils_path = Path(__file__).parent.parent.parent / 'utils'
|
|
31
|
-
if str(utils_path) not in sys.path:
|
|
32
|
-
sys.path.insert(0, str(utils_path.parent))
|
|
33
|
-
from utils.data_utils import rem_nans_spline
|
|
24
|
+
from .utils.data_utils import rem_nans_spline
|
|
34
25
|
|
|
35
26
|
def _rem_nans_spline(X: np.ndarray, method: int = 2, k: int = 3):
|
|
36
27
|
"""Treat NaNs in dataset for DFM estimation (wrapper for rem_nans_spline).
|
|
@@ -13,7 +13,7 @@ sys.path.insert(0, str(project_root / 'src'))
|
|
|
13
13
|
|
|
14
14
|
from dfm_python.dfm import dfm, DFMResult, em_step, init_conditions
|
|
15
15
|
from dfm_python.data_loader import load_config, load_data
|
|
16
|
-
from utils.data_utils import rem_nans_spline
|
|
16
|
+
from dfm_python.utils.data_utils import rem_nans_spline
|
|
17
17
|
|
|
18
18
|
try:
|
|
19
19
|
from scipy.io import loadmat
|
|
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
|