Command line option CheckXMLFilesWithSchema does not work
System information
- OS Platform and Distribution: Linux Xubuntu 20.04
- Maja installed from: docker
- Maja version: 4.5.3 (compilied with option
CheckXMLFilesWithSchema
disabled inMAJAUserConfigSystem.xml
Describe the current behavior
When running maja with command line option --CheckXMLFilesWithSchema
, the XML validation is not enabled
Describe the expected behavior
When running maja with command line option --CheckXMLFilesWithSchema
, the XML validation should be enabled
Code to reproduce the issue
$ maja -i /data/input/S2-V-L2NOMINAL-011-F-N-SENTINEL2_MUSCATE-GENERAL -o /data/output -m L2NOMINAL --CheckXMLFilesWithSchema
...
2022-03-03 08:20:11 [10] INFO MAJA 4.5 initialize:491 Number of theads 8
2022-03-03 08:20:11 [10] INFO MAJA 4.5 __init__:103 Using 8 Threads
2022-03-03 08:20:11 [10] INFO MAJA 4.5 __init__:109 Using 8096 MB of RAM
2022-03-03 08:20:11 [10] INFO MAJA 4.5 __init__:115 Validating xml : False
2022-03-03 08:20:11 [10] INFO MAJA 4.5 main:72 Launching processor : BASE
2022-03-03 08:20:11 [10] INFO MAJA 4.5 pre_processing:68 Starting Preprocessing
...
Correction
The error is probably located here: https://gitlab.orfeo-toolbox.org/maja/maja/-/blob/4.5.3/orchestrator/processor/l2_processor.py#L114