Skip to content

Commit

Permalink
Renaming class
Browse files Browse the repository at this point in the history
  • Loading branch information
lcsrodriguez committed Dec 24, 2023
1 parent fb2bf4a commit 80bd6ed
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 24 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ python3 test/test.py
```

```python
from ecocal import EconomicCalendar
from ecocal import Calendar

ec = EconomicCalendar(startHorizon="2023-10-10",
ec = Calendar(startHorizon="2023-10-10",
endHorizon="2023-10-12",
withDetails=True
)
Expand Down
25 changes: 4 additions & 21 deletions ecocal/main.py
Original file line number Diff line number Diff line change
@@ -1,24 +1,7 @@
import numpy as np
import requests
import io
import pandas as pd
from typing import Union, List
import datetime
import time
from threading import Thread
from tqdm import tqdm
from urllib3.util.retry import Retry
from requests.adapters import HTTPAdapter

retry = Retry(
total=5,
backoff_factor=1
)
adapter = HTTPAdapter(
max_retries=retry
)

class EconomicCalendar:
from .utils import *


class Calendar:
__slots__ = (
"startHorizon",
"endHorizon",
Expand Down
2 changes: 1 addition & 1 deletion test/test.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from ecocal import *


ec = EconomicCalendar(startHorizon="2020-01-01",
ec = Calendar(startHorizon="2020-01-01",
endHorizon="2024-12-31",
withDetails=True,
nbThreads=200
Expand Down

0 comments on commit 80bd6ed

Please sign in to comment.