Skip to content

Commit

Permalink
fixed file path for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
qnguyen345 committed Aug 19, 2024
1 parent 9ecd103 commit eda5f00
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions docs/examples/energy/cumulative-energy-simple-avg-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@
# that check, then the data stream is cumulative and it can be corrected
# via average differencing.

import os
import pandas as pd
import matplotlib.pyplot as plt
from pvanalytics.quality import energy
import pathlib
import pvanalytics

# %%
# First, read in the ac energy data. This data set contains one week of
# 10-minute ac energy data.

script_directory = os.path.dirname(__file__)
energy_filepath = os.path.join(
script_directory,
"../../../pvanalytics/data/system_10004_ac_energy.csv")
data = pd.read_csv(energy_filepath)
pvanalytics_dir = pathlib.Path(pvanalytics.__file__).parent
energy_file = pvanalytics_dir / 'data' / 'system_10004_ac_energy.csv'
data = pd.read_csv(energy_file)
energy_series = data['ac_energy_inv_16425']

# %%
Expand Down
11 changes: 5 additions & 6 deletions docs/examples/energy/cumulative-energy-simple-diff-check.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,19 @@
# that check, then the data stream is cumulative and it can be corrected
# via simple differencing.

import os
import pandas as pd
import matplotlib.pyplot as plt
from pvanalytics.quality import energy
import pathlib
import pvanalytics

# %%
# First, read in the ac energy data. This data set contains one week of
# 10-minute ac energy data.

script_directory = os.path.dirname(__file__)
energy_filepath = os.path.join(
script_directory,
"../../../pvanalytics/data/system_10004_ac_energy.csv")
data = pd.read_csv(energy_filepath)
pvanalytics_dir = pathlib.Path(pvanalytics.__file__).parent
energy_file = pvanalytics_dir / 'data' / 'system_10004_ac_energy.csv'
data = pd.read_csv(energy_file)
energy_series = data['ac_energy_inv_16425']

# %%
Expand Down

0 comments on commit eda5f00

Please sign in to comment.