Skip to content

Commit

Permalink
refactor: assign timestamp to PG data frame in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rouille committed Sep 12, 2020
1 parent f16fcdb commit f2477f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion postreise/analyze/generation/tests/test_carbon.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,8 @@ def setUp(self):
{
plant_id: [(i + 1) * p for p in range(self.period_num)]
for i, plant_id in enumerate(mock_plant["plant_id"])
}
},
index=pd.date_range(start="2016-01-01", periods=self.period_num, freq="H"),
)
self.plant = pd.DataFrame(mock_plant)
self.plant.set_index("plant_id", inplace=True)
Expand Down

0 comments on commit f2477f0

Please sign in to comment.