scipion-em / scipion-em-tomo

Base tomography Scipion plugin with data model definition
GNU General Public License v3.0
8 stars 4 forks source link

Jj fix acq storing import #459

Closed JorMaister closed 7 months ago

sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
2 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

azazellochg commented 7 months ago

Hi, could you give a summary of what is being fixed here? Did we have dose information wrong during import?

azazellochg commented 7 months ago

Okay, after more reading I see that we had initialDose = 0 for all tilt images.

JorMaister commented 7 months ago

Sure, @azazellochg!

azazellochg commented 7 months ago

Brilliant, thank you @JorMaister . I've run an import on my movies and acq looks correct! The only thing I noticed is: [ FAILED ] TestTomoImportTsFromMdoc.test_mdocFileCheckerRealOk I don't know if that's expected to fail..

JorMaister commented 7 months ago

Tests are passing on my side, @azazellochg. What's the error you got?

azazellochg commented 7 months ago

[ FAILED ] TestTomoImportTsFromMdoc.test_mdocFileCheckerRealOk

Traceback (most recent call last): File "/public/EM/Scipion/miniconda3/envs/scipion3/lib/python3.8/unittest/case.py", line 60, in testPartExecutor yield File "/public/EM/Scipion/miniconda3/envs/scipion3/lib/python3.8/unittest/case.py", line 676, in run self._callTestMethod(testMethod) File "/public/EM/Scipion/miniconda3/envs/scipion3/lib/python3.8/unittest/case.py", line 633, in _callTestMethod method() File "/public/EM/Scipion/scipion-dev/scipion-em-plugins/scipion-em-tomo/tomo/tests/test_import.py", line 970, in test_mdocFileCheckerRealOk self._checkMDocParsingErrorMsg(mdocList, expectedErrorKeyWordList) File "/public/EM/Scipion/scipion-dev/scipion-em-plugins/scipion-em-tomo/tomo/tests/test_import.py", line 1034, in _checkMDocParsingErrorMsg self.assertTrue(not errorMsg, "There are errors unexpected when validating the Mdocs: %s" % errorMsg) File "/public/EM/Scipion/miniconda3/envs/scipion3/lib/python3.8/unittest/case.py", line 765, in assertTrue raise self.failureException(msg) AssertionError: False is not true : There are errors unexpected when validating the Mdocs: /public/EM/Scipion/scipion-dev/data/tests/tomo-em/ts_tsM_and_mdocs/mdocs/realFromEmpiar/complete/TS-G8-box7-015.mrc.mdoc is missing:

JorMaister commented 7 months ago

It seems a validation error, like if the mdoc does not contain the data required to calculate the dose... Is the corresponding test dataset up to date?

azazellochg commented 7 months ago

You were right, I have removed the offending mdoc and the manifest, after regeneration that it's all working!