Skip to content

Commit

Permalink
Merge pull request #683 from jlmaurer/quick_tz_fix
Browse files Browse the repository at this point in the history
Couple of quick fixes
  • Loading branch information
bbuzz31 authored Sep 9, 2024
2 parents 0c0a6aa + 13b4e1d commit c79109a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and uses [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
[Unreleased]
### Changed
* [672](https://github.com/dbekaert/RAiDER/pull/672) - Linted the project with `ruff`.
* [683](https://github.com/dbekaert/RAiDER/pull/683) - Fixed a naive datetime and added default template to template generation argument

### Fixed
* [679](https://github.com/dbekaert/RAiDER/pull/679) - Fixed a bug causing test_updateTrue to falsely pass.
Expand Down
4 changes: 3 additions & 1 deletion tools/RAiDER/cli/raider.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,17 +182,19 @@ def calcDelays(iargs: Optional[Sequence[str]]=None) -> list[Path]:

# Generate an example configuration file, OR
# run with a configuration file.
group = p.add_mutually_exclusive_group(required=True)
group = p.add_mutually_exclusive_group(required=False)
group.add_argument(
'--generate_config',
'-g',
nargs='?',
const='template',
choices=[
'template',
'example_LA_bbox',
'example_LA_GNSS',
'example_UK_isce',
],
default='template',
help='Generate an example run configuration and exit',
)
group.add_argument(
Expand Down
2 changes: 1 addition & 1 deletion tools/RAiDER/models/hres.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def _fetch(self, out) -> None:
lat_min, lat_max, lon_min, lon_max = self._ll_bounds
time = self._time

if time < dt.datetime(2013, 6, 26, 0, 0, 0):
if time < dt.datetime(2013, 6, 26, 0, 0, 0).replace(tzinfo=dt.timezone(offset=dt.timedelta())):
self.update_a_b()

# execute the search at ECMWF
Expand Down

0 comments on commit c79109a

Please sign in to comment.