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

Mex fixes #541

Merged
merged 7 commits into from
Jun 2, 2023
Merged

Mex fixes #541

merged 7 commits into from
Jun 2, 2023

Conversation

acpaquette
Copy link
Collaborator

Fixes up MEX HRSC drivers for use in ISIS and USGSCSM

@codecov-commenter
Copy link

codecov-commenter commented Jun 1, 2023

Codecov Report

Merging #541 (7ae09db) into main (8aa3b10) will decrease coverage by 0.04%.
The diff coverage is 0.00%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

@@            Coverage Diff             @@
##             main     #541      +/-   ##
==========================================
- Coverage   17.06%   17.03%   -0.04%     
==========================================
  Files          53       53              
  Lines        5813     5824      +11     
==========================================
  Hits          992      992              
- Misses       4821     4832      +11     
Impacted Files Coverage Δ
ale/base/label_isis.py 0.00% <ø> (ø)
ale/drivers/mex_drivers.py 0.00% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@acpaquette acpaquette requested review from Kelvinrr and chkim-usgs June 2, 2023 20:07
@@ -69,7 +69,7 @@
[-8569.5561557859, 0.068566503695773, 142.857126402363]],
}

class MexHrscPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, RadialDistortion, Driver):
class MexHrscPds3NaifSpiceDriver(LineScanner, Pds3Label, NaifSpice, NoDistortion, Driver):
Copy link
Collaborator

Choose a reason for hiding this comment

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

why disable distortion?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I think this was before we had a NoDistortion class/mixin in ALE. In the driver we define the distortion coefficients as all zeros:

    @property
    def odtk(self):
        """
        The coefficients for the distortion model
        Returns
        -------
        : list
          Radial distortion coefficients. There is only one coefficient for LROC NAC l/r
        """
        return [0.0, 0.0, 0.0]

I just changed it to remove duplicate code but didn't remove the odtk property. I will do that

Comment on lines -118 to -124
/* DATA OBJECT DEFINITIONS */
Object = IMAGE
INTERCHANGE_FORMAT = BINARY
LINES = 400
LINE_PREFIX_BYTES = 68
LINE_SAMPLES = 1288
SAMPLE_TYPE = MSB_INTEGER
Copy link
Collaborator

Choose a reason for hiding this comment

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

why is all of this deleted?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

For whatever reason two pds3 labels existed in the file. One with 400 lines and the other with 15088 lines which is the actual number of lines in the image.

Using the real number of lines made testing easier

@acpaquette acpaquette requested a review from Kelvinrr June 2, 2023 22:53
@acpaquette acpaquette merged commit 759b307 into DOI-USGS:main Jun 2, 2023
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.

3 participants