Details
-
Type:
Story
-
Status: Done
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: SUIT
-
Labels:None
-
Story Points:4
-
Sprint:SUIT Sprint 2016-11, SUIT Sprint 2016-12, SUIT Sprint 2017-01
-
Team:Science User Interface
Description
When I am working on the unit test for Crop class, I noticed that it uses switch bitpix to deal with different data type. Since float is used for FitsRead, it should be updated accordingly.
[Update 11-09-16]
In July 2015, the CropAndCenter was refactored. When it was refactored, I noticed that Crop.java and CropAndCenter have many common codes. So a method do_crop
Fits do_crop(Fits inFits, int min_x, int min_y, int max_x, int max_y)
|
was added to the CropAndCenter class. Thus, the Crop.java became redundancy. It could be removed from the system. I searched usages and found it is not used at all. I think that
it is safe to remove it now.
This ticket will include the following work:
- Remove Crop.java
- Refactor CropFile.java in the same manner as CropAndCenter, FitsRead etc.
- Add unit tests for both CropAndCenter and CropFile classes
This ticket included adding unit tests and refactoring the codes and deprecating classes. The unit tests were added before the refactoring to ensure that the refactoring did not introduce the problem.