Skip to content

Commit

Permalink
debugging notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobin Ford committed Dec 12, 2024
1 parent ac94639 commit fe22aef
Show file tree
Hide file tree
Showing 7 changed files with 1,079 additions and 7 deletions.
9 changes: 8 additions & 1 deletion pvdeg/pysam.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,13 @@ def inspire_ground_irradiance(weather_df, meta, config_files):
returns an custom class object so we can unpack it later.
"""

if (not isinstance(weather_df, pd.DataFrame) or not isinstance(meta, dict)):
raise ValueError(f"""
weather_df must be pandas DataFrame, meta must be dict.
weather_df type : {type(weather_df)}
meta type : {type(meta)}
""")

outputs = pysam(
weather_df = weather_df,
meta = meta,
Expand All @@ -448,7 +455,7 @@ def solar_resource_dict(weather_df, meta):
Works on PVGIS and appears to work on NSRDB (NOT PSM3).
"""

weather_df = weather_df.reset_index(drop=True) # Probably dont need to do this
# weather_df = weather_df.reset_index(drop=True) # Probably dont need to do this
weather_df = utilities.add_time_columns_tmy(weather_df) # only supports hourly data

sr = {
Expand Down
410 changes: 410 additions & 0 deletions scripts/debug/01_pvsamv1.json

Large diffs are not rendered by default.

Loading

0 comments on commit fe22aef

Please sign in to comment.