Closed rileyhales closed 4 months ago
[!CAUTION]
Review failed
The pull request is closed.
The update to the geoglows
package includes a version increment to 1.7.0, indicating new features and improvements. Enhancements include improved datetime handling in dataframes, expanded function aliases for better usability, and additional functionality in plotting functions, such as dynamically setting timezone labels and calculating decade averages for flow data. These changes refine data integrity, usability, and analytical capabilities of the package.
Files | Change Summaries |
---|---|
geoglows/__init__.py |
Version update from 1.6.3 to 1.7.0. |
geoglows/_download_decorators.py |
Enhanced datetime handling, ensuring consistent timezone management across functions. |
geoglows/_plots/__init__.py |
Added alias plotly_figure_to_html_plot for plotly_figure_to_html . |
geoglows/_plots/format_tools.py |
Introduced timezone_label function for formatted timezone strings. |
geoglows/_plots/plotly_forecasts.py |
Improved x-axis timezone labels and hover formats for forecast-related plots. |
geoglows/_plots/plotly_retrospective.py |
Renamed parameters for clarity and added decade averages functionality to annual_averages function. |
geoglows/_plots/plots.py |
Added decade_averages parameter to annual_averages function for enhanced analytical capabilities. |
sequenceDiagram
participant User
participant PlotFunction as Plot Function
participant TimezoneLabel as timezone_label
participant DataFrame as DataFrame
User->>PlotFunction: Call plot function
PlotFunction->>DataFrame: Get index timezone
PlotFunction->>TimezoneLabel: Call timezone_label with index timezone
TimezoneLabel-->>PlotFunction: Return formatted timezone string
PlotFunction-->>User: Return plot with dynamic timezone label
Note over PlotFunction, DataFrame: Plot function now dynamically sets x-axis label with timezone info
sequenceDiagram
participant User
participant AnnualAverages as annual_averages
participant DataFrame as DataFrame
participant PlotlyAnnualAverages as plotly_annual_averages
User->>AnnualAverages: Call with decade_averages=True
AnnualAverages->>DataFrame: Extract decade averages (if enabled)
AnnualAverages->>PlotlyAnnualAverages: Pass data and settings
PlotlyAnnualAverages-->>AnnualAverages: Return plot
AnnualAverages-->>User: Return plot with decade averages
Note over AnnualAverages, DataFrame: New feature calculates and includes decade averages in the plot
In the code where changes bloom,
Timezones now aligned, no gloom.
Decades marked in flowing streams,
Enhanced plots with data dreams. 🌟
A version rise to one-seven-oh,
Usability and features grow. 🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
decade_averages
parameter to annual averages plots for better long-term analysis.Enhancements
plotly_figure_to_html_plot
for better usability.Refactor
Version Update