Open petermr opened 4 years ago
I cannot reproduce this, perhaps because the test data is not committed? When I run the test I see this:
not found: cProject must be existing directory or have directory parent:
\Users\pm286\workspace\cmdev\ami3\src\test\resources\org\contentmine\ami\battery10 (C:\Users\pm286\workspace\cmdev\ami3\src\test\resources\org\contentmine\ami\battery10
The test essentially executes this command:
ami [options] image --include minpix=500|maxpixf=0.1|graytol=20
... but then receives the initialized command object like this:
AMI.execute(AMIPixelTool.class, cmd);
Looking at the image
command, this is defined by the AMIImageTool
, not by the AMIPixelTool
, which defines command pixel
.
So, either the command should be ami [options] pixel ...
, or the command object should be AMIImageTool
:
// no need to cast: AMIImageTool extends AbstractAMITool
AMIImageTool imageTool = AMI.execute(AMIImageTool.class, cmd);
Thanks. I thought I had committed the data. Will check. Not till tomorrow...
Was this resolved and can this ticket be closed?
Not sure it's been resolved... It tended to happen on parse errors. I'll try to repeat the problem. If I can't we'll close it.
On Tue, Jul 7, 2020 at 6:25 AM Remko Popma notifications@github.com wrote:
Was this resolved and can this ticket be closed?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/petermr/openVirus/issues/61#issuecomment-654609539, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFTCS7UEMEGPSX45FPGBL3R2KWTPANCNFSM4NYJDKMQ .
-- Peter Murray-Rust Founder ContentMine.org and Reader Emeritus in Molecular Informatics Dept. Of Chemistry, University of Cambridge, CB2 1EW, UK
In the test
This correctly creates an error message
but also throws an Exception (when run in Eclipse)
When the command completes OK we (presumably) get the correct class returned.