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 errors in reprocessing #29

Merged
merged 9 commits into from
Sep 1, 2022
Merged

Fix errors in reprocessing #29

merged 9 commits into from
Sep 1, 2022

Conversation

javierggt
Copy link
Contributor

@javierggt javierggt commented Aug 29, 2022

Description

This PR fixes small errors found in reprocessing.

Interface impacts

None

Testing

Unit tests

  • No unit tests
  • Mac
  • Linux
  • Windows

Independent check of unit tests by [REVIEWER NAME]

  • [PLATFORM]:

Functional tests

All OBSIDs that showed errors previously were processed without error.

@javierggt javierggt requested a review from taldcroft August 31, 2022 18:36
Copy link
Member

@taldcroft taldcroft left a comment

Choose a reason for hiding this comment

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

This all looks basically fine, you just need to document completion of functional testing.

@@ -747,6 +747,7 @@ def simple_cross_match(
matches['dz'] = matches['x_z_angle'] - matches['c_z_angle']
matches['dy'] = matches['x_y_angle'] - matches['c_y_angle']
matches['dr'] = np.sqrt(matches['dy']**2 + matches['dz']**2)
matches['cat_order'] = table.Column(length=len(matches), dtype=int)
Copy link
Member

Choose a reason for hiding this comment

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

You can do with in one line with:

matches['cat_order'] = np.full(len(matches), 200)

With modern astropy the Column class constructor is almost never needed for user code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I adopted this suggestion.

…an empty table (instead of using the Column constructor)
@javierggt javierggt merged commit 0da83f6 into master Sep 1, 2022
@javierggt javierggt deleted the fix-errors branch September 1, 2022 17:02
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