Skip to content

Commit 1524d99

Browse files
update workflow
1 parent 9146beb commit 1524d99

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

.github/workflows/python-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,5 @@ jobs:
3333
- name: Publish to PyPI
3434
uses: pypa/gh-action-pypi-publish@release/v1
3535
with:
36-
password: ${{ secrets.PYPI_GLOBAL }}
36+
password: ${{ secrets.PYPI_AHEAD }}
3737
repository-url: https://upload.pypi.org/legacy/

ahead/ARMAGARCH/ArmaGarch.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,6 @@ def __init__(
7575
seed=123,
7676
date_formatting="original",
7777
):
78-
if not config.R_IS_INSTALLED:
79-
raise ImportError("R is not installed! \n" + config.USAGE_MESSAGE)
80-
81-
if not config.RPY2_IS_INSTALLED:
82-
raise ImportError(config.RPY2_ERROR_MESSAGE + config.USAGE_MESSAGE)
8378

8479
self.h = h
8580
self.level = level

examples/armagarch.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import os
2+
import numpy as np
3+
import pandas as pd
4+
from ahead import ArmaGarch
5+
from time import time
6+
7+
print(f"\n ----- Running: {os.path.basename(__file__)}... ----- \n")
8+
9+
# Forecasting horizon
10+
h = 5
11+
12+
# univariate ts forecasting
13+
print("Example 1 -----")
14+
d1 = ArmaGarch(h = h)
15+
print(d1.__module__)
16+
print(dir(d1))
17+

0 commit comments

Comments
 (0)