Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Couple of quick fixes #683

Merged
merged 3 commits into from
Sep 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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