alan-turing-institute / DetectorChecker

Project to develop software to assess developing detector screen damage (Web App based on the original DetectorChecker package)
https://detectorchecker.azurewebsites.net
MIT License
0 stars 1 forks source link

Current issues in the original source code (In progress) #1

Closed tomaslaz closed 5 years ago

tomaslaz commented 6 years ago

Major:

Possible fix: use package h5

https://github.com/alan-turing-institute/DetectorChecker/blob/eef5f296f5dc26ece0634cc82014ba7a78b950db/Original_code/Rcode_phase1/phase1_CountsAngles_test.R#L350 Error in (function (x, bw = "nrd0", adjust = 1, kernel = c("gaussian", : 'weights' must all be finite Calls: rose -> nnorient -> circdensity -> do.call -> <Anonymous>

https://github.com/alan-turing-institute/DetectorChecker/blob/eef5f296f5dc26ece0634cc82014ba7a78b950db/Original_code/Rcode_phase1/phase1_CountsAngles_test.R#L402

https://github.com/alan-turing-institute/DetectorChecker/blob/eef5f296f5dc26ece0634cc82014ba7a78b950db/Original_code/Rcode_phase1/phase1_CountsAngles_test.R#L420

This error occurs when all the pixels are close to the module edges rather than other defects. By default the "nnorient" function has "correction" argument set to "bord.modif" which applies edge corrections - those pixels which are closer to edges rather than other pixels are not included in the analysis. A possible fix would be to specify a different correction method or not apply any correction at all, for example correction="none".

The problem has been submitted as a github issue.

Minor:

Fix: as.is = TRUE

WilfridSKendall commented 6 years ago

This message is mainly to check I can add minor issues myself.

I've run the Original_code scripts and noted a few other minor points: