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

Link and reference convert fix #90

Merged
merged 4 commits into from
Mar 19, 2024
Merged

Link and reference convert fix #90

merged 4 commits into from
Mar 19, 2024

Conversation

NickSwainston
Copy link
Owner

Fixed an incorrect link mentioned in issue #89

Fixed the ANTF reference formatting and made a test to cover it so instead of this reference:

J1823-3021B_simple_power_law_fit_old

We get this correct one:

J1823-3021B_simple_power_law_fit

@NickSwainston NickSwainston requested a review from cplee1 March 18, 2024 09:09
query = psrqpy.QueryATNF(version=ATNF_VER).pandas
flux_queries = []
for table_param in query.keys():
if re.match("S\d*\d$", table_param) or re.match("S\d*G$", table_param):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Pytest returns a warning for this line: "invalid escape sequence '\d'". Is this okay?

Copy link
Owner Author

Choose a reason for hiding this comment

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

I've added an r in front of those strings to declare that it is a re pattern, which removed the warning.

@cplee1 cplee1 merged commit 31cd22c into main Mar 19, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants