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

Fix XRSClient time in query results #2364

Merged
merged 6 commits into from Dec 13, 2017
Merged

Conversation

Cadair
Copy link
Member

@Cadair Cadair commented Dec 10, 2017

fixes #2335

@Cadair Cadair added 0.8.x Affects Release An issue/bug that affects a released version (use a version label too) labels Dec 10, 2017
@pep8speaks
Copy link

pep8speaks commented Dec 10, 2017

Hello @Cadair! Thanks for updating the PR.

Cheers ! There are no PEP8 issues in this Pull Request. 🍻

Comment last updated on December 13, 2017 at 18:05 Hours UTC

uripath = urlsplit(uri).path

# Extract the yymmdd or yyyymmdd timestamp
datestamp = os.path.splitext(os.path.split(uripath)[1])[0][4:]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should always be the case? Remove the first 4?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah the filenames always start with go{satnum:02d} so always four char

Copy link
Member

@dpshelio dpshelio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm sure I was not to blame... 😛

# Extract the yymmdd or yyyymmdd timestamp
datestamp = os.path.splitext(os.path.split(uripath)[1])[0][4:]

if int(datestamp) < 990115:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that 1999-01-15? or is the number of seconds since computer existed? a comment would help for people when look that in a confusing way.

@Cadair Cadair force-pushed the xrsclient_table branch 2 times, most recently from 58bb396 to 4ca9c4e Compare December 13, 2017 13:14
@Cadair Cadair added the Merge When CI Passes Hit that merge button when it's all green! label Dec 13, 2017
@Cadair
Copy link
Member Author

Cadair commented Dec 13, 2017

Unrelated online test fails.

@Cadair Cadair merged commit eb8f3e1 into sunpy:master Dec 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects Release An issue/bug that affects a released version (use a version label too) Merge When CI Passes Hit that merge button when it's all green!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FIDO XRSClient query results are mislabeled
4 participants