Skip to content

Commit

Permalink
fixing pylint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Oct 23, 2023
1 parent fa48840 commit 4eba73d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/common/pg_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,12 +335,12 @@ def get_station_data(self, **kwargs) -> str:
station_df['Difference (APS-OBS)'] = station_df[observation_name] - station_df[nowcast_column_name]

# rename the columns
station_df.rename(columns={nowcast_column_name: 'APS Nowcast', observation_name: 'Observations',
tidal_predictions_name: 'NOAA Tidal Predictions'}, inplace=True)
station_df.rename(
columns={nowcast_column_name: 'APS Nowcast', observation_name: 'Observations', tidal_predictions_name: 'NOAA Tidal Predictions'},
inplace=True)
else:
# rename the columns
station_df.rename(columns={observation_name: 'Observations', tidal_predictions_name:
'NOAA Tidal Predictions'}, inplace=True)
station_df.rename(columns={observation_name: 'Observations', tidal_predictions_name: 'NOAA Tidal Predictions'}, inplace=True)

# return the data to the caller
return station_df.to_csv(index=False)
Expand Down

0 comments on commit 4eba73d

Please sign in to comment.