-
Notifications
You must be signed in to change notification settings - Fork 4
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
Create Method to get the OIFITS standard of the OIFitsFile #12
Comments
It looks strange ! The expression "FitsConstants.KEYWORD_CONTENT_OIFITS2.equals(FitsConstants.KEYWORD_CONTENT) ? OIFitsStandard.VERSION_2 : OIFitsStandard.VERSION_1)" is CONSTANT ! C1.equals(C2) ? V1 : V2 => V1 or V2 ! Please verify the use cases. You would need instead: |
Right. |
Make a static public method in the appropriate class ... "We have a use like this when oifitsfile does not exist yet." |
In OIFITSFILE: In OIFITSLOADER: |
Check & verify the OIFITSFILE as it looks buggy ! |
We have in OiFitsFile a comparison with constants (used two times): (FitsConstants.KEYWORD_CONTENT_OIFITS2.equals(FitsConstants.KEYWORD_CONTENT) ? OIFitsStandard.VERSION_2 : OIFitsStandard.VERSION_1) We need to check its effect Proposal: To checker.ruleFailed(Rule.OIFITS_OI_TARGET_EXIST); |
Question related to the review of the method: Maybe new issue |
I still do not understand anything... |
Yes, what is the question related to the review of the method ? |
Create Method to define version of the File in OIFitsFile done: |
still waiting for patch |
Fix pushed |
* Create Method to define version of the File (Loading file) #12 * Create Method to get the OIFITS standard of the OIFitsFile #12 * Create Method to get the OIFITS standard of the OIFitsFile #12 * Junit Test loading lots of files when isInspectRule is active #4 * Junit Test loading lots of files when isInspectRule is active #4 * Junit Test loading lots of files when isInspectRule is active #4 * Junit Test loading lots of files when isInspectRule is active #4
* Create Method to define version of the File (Loading file) #12 * Create Method to get the OIFITS standard of the OIFitsFile #12 * Create Method to get the OIFITS standard of the OIFitsFile #12 * Junit Test loading lots of files when isInspectRule is active #4 * Junit Test loading lots of files when isInspectRule is active #4 * Junit Test loading lots of files when isInspectRule is active #4 * Junit Test loading lots of files when isInspectRule is active #4 * bash file for merge upstream and master * JavaDoc * Failures diagramm * diagram UML for load information and load/write files * some JavaDoc fix
FitsConstants.KEYWORD_CONTENT_OIFITS2.equals(FitsConstants.KEYWORD_CONTENT) ? OIFitsStandard.VERSION_2 : OIFitsStandard.VERSION_1) is used 4 time !
Proposal:
/**
* define the version of the file
*
* @return the version
*/
public OIFitsStandard defineOIFITSVersion() {
return (FitsConstants.KEYWORD_CONTENT_OIFITS2.equals(FitsConstants.KEYWORD_CONTENT) ? OIFitsStandard.VERSION_2 : OIFitsStandard.VERSION_1);
}
The text was updated successfully, but these errors were encountered: