Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RamiKrispin committed Feb 23, 2024
1 parent 2272a83 commit 3aa8aeb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 8 deletions.
Binary file modified python/__pycache__/eia_api.cpython-310.pyc
Binary file not shown.
Binary file modified python/__pycache__/eia_data.cpython-310.pyc
Binary file not shown.
9 changes: 3 additions & 6 deletions python/data_backfile_py.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ facets_template = {
"subba" : None
}
start = datetime.datetime(2018, 6, 20, 1)
start = datetime.datetime(2018, 7, 1, 8)
end = datetime.datetime(2024, 2, 18, 1)
offset = 2250
Expand All @@ -66,22 +66,19 @@ data_path = "../csv/ciso_grid_py.csv"

```{python}
metadata = api.eia_metadata(api_key = eia_api_key, api_path = api_path)
metadata.meta.keys()
print(metadata.meta.keys())
print(metadata.meta["startPeriod"])
print(metadata.meta["endPeriod"])
```


```{python}
start = datetime.datetime(2018, 7, 1, 8)
# start = datetime.datetime(2024, 1, 1, 1)
end = datetime.datetime(2024, 2, 18, 1)
for i in series.index:
facets = facets_template
facets["parent"] = series.at[i, "parent_id"]
facets["subba"] = series.at[i, "subba_id"]
print(facets)
temp = api.eia_backfile(api_key = eia_api_key,
temp = api.eia_backfill(api_key = eia_api_key,
api_path = api_path+ "data",
facets = facets,
start = start,
Expand Down
2 changes: 1 addition & 1 deletion python/data_refresh_py.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ for i in m.index:
print(facets)
if m.at[i, "updates_available"]:
temp = api.eia_backfile(api_key = eia_api_key,
temp = api.eia_backfill(api_key = eia_api_key,
api_path = api_path+ "data",
facets = facets,
start = start.to_pydatetime(),
Expand Down
2 changes: 1 addition & 1 deletion python/eia_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def __init__(output, data, url, parameters):



def eia_backfile(start, end, offset, api_key, api_path, facets):
def eia_backfill(start, end, offset, api_key, api_path, facets):

class response:
def __init__(output, data, parameters):
Expand Down

0 comments on commit 3aa8aeb

Please sign in to comment.