From 27dd73d24fa82f3cbf066d6edb5aa3063b102099 Mon Sep 17 00:00:00 2001 From: Pedro Bressan Date: Thu, 28 Mar 2024 18:24:23 -0300 Subject: [PATCH] DOC: standardize grammar on time zones. --- rocketpy/environment/environment_analysis.py | 2 +- rocketpy/tools.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rocketpy/environment/environment_analysis.py b/rocketpy/environment/environment_analysis.py index c15b32551..0ed638091 100644 --- a/rocketpy/environment/environment_analysis.py +++ b/rocketpy/environment/environment_analysis.py @@ -441,7 +441,7 @@ def __localize_input_dates(self): def __find_preferred_timezone(self): if self.preferred_timezone is None: - # Use local timezone based on lat lon pair + # Use local time zone based on lat lon pair try: timezonefinder = import_optional_dependency("timezonefinder") tf = timezonefinder.TimezoneFinder() diff --git a/rocketpy/tools.py b/rocketpy/tools.py index bcff91fb8..d7d19dfc0 100644 --- a/rocketpy/tools.py +++ b/rocketpy/tools.py @@ -153,7 +153,7 @@ def time_num_to_date_string(time_num, units, timezone, calendar="gregorian"): """Convert time number (usually hours before a certain date) into two strings: one for the date (example: 2022.04.31) and one for the hour (example: 14). See cftime.num2date for details on units and calendar. - Automatically converts time number from UTC to local timezone based on + Automatically converts time number from UTC to local time zone based on lat, lon coordinates. This function was created originally for the EnvironmentAnalysis class.