Skip to content

Commit b44000d

Browse files
committed
.shift(freq="-30T") -> .shift(freq="-30min")
1 parent fa7c245 commit b44000d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/examples/agrivoltaics/plot_diffuse_PAR_Spitters_relationship.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
solar_position = pvlib.solarposition.get_solarposition(
5959
# TMY timestamp is at end of hour, so shift to center of interval
60-
tmy.index.shift(freq="-30T"),
60+
tmy.index.shift(freq="-30min"),
6161
latitude=metadata["latitude"],
6262
longitude=metadata["longitude"],
6363
altitude=metadata["altitude"],

docs/examples/irradiance-decomposition/plot_diffuse_fraction.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
# NOTE: TMY3 files timestamps indicate the end of the hour, so shift indices
3636
# back 30-minutes to calculate solar position at center of the interval
3737
solpos = get_solarposition(
38-
greensboro.index.shift(freq="-30T"), latitude=metadata['latitude'],
38+
greensboro.index.shift(freq="-30min"), latitude=metadata['latitude'],
3939
longitude=metadata['longitude'], altitude=metadata['altitude'],
4040
pressure=greensboro.pressure*100, # convert from millibar to Pa
4141
temperature=greensboro.temp_air)

0 commit comments

Comments
 (0)