LiberTEM/LiberTEM

View on GitHub
Add test for fail case #3771
Dieter Weber authored 00b6b78a
complete00:00:52
1
git clone
2
codeclimate validate-config
View output
codeclimate validate-config
No errors or warnings found in .codeclimate.yml.
3
codeclimate prepare
View output
codeclimate prepare
4
builder pull-engines
View output
determining required images
5
structure
View output
16
Parser process id: 16
codeclimate-parser socket not present
waiting 1s...
W, [2024-04-09T12:23:42.411579 #1]  WARN -- : Skipping src/libertem/web/client/assets/index-cff78375.js due to CC::Parser::Client::HTTPError
W, [2024-04-09T12:23:42.411625 #1]  WARN -- : Response status: 413
6
duplication
View output
15
Parser process id: 15
codeclimate-parser socket not present
waiting 1s...
W, [2024-04-09T12:23:56.454813 #1]  WARN -- : Skipping ./src/libertem/web/client/assets/index-cff78375.js due to CC::Parser::Client::HTTPError
W, [2024-04-09T12:23:56.454863 #1]  WARN -- : Response status: 413
I, [2024-04-09T12:23:57.329639 #1]  INFO -- : Skipping file ./scripts/run_mypy.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 16
    raise RuntimeError(f"File {f} on line {i} in .mypy-checked does not exist.")
                                                                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.468140 #1]  INFO -- : Skipping file ./src/libertem/viz/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 135
    raise ValueError(f"No plottable 2D channel found for {udf.__class__.__name__}")
                                                                                 ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.521033 #1]  INFO -- : Skipping file ./src/libertem/viz/mpl.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 74
    **kwargs,
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.537217 #1]  INFO -- : Skipping file ./src/libertem/utils/devices.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    cpus: list[int]
        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.618683 #1]  INFO -- : Skipping file ./src/libertem/executor/dask.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def __init__(self, comms_topic: Optional[str]):
                                  ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.631492 #1]  INFO -- : Skipping file ./src/libertem/executor/inline.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    def __init__(self, queue: SimpleWorkerQueue, msg_queue: SimpleWorkerQueue):
                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.645668 #1]  INFO -- : Skipping file ./src/libertem/executor/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    def get_udf_runner(self) -> type['UDFRunner']:
                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.656923 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/delayed_unpack.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def default_unpackable() -> dict[type, Callable[[Iterable], Iterable[tuple[Any, Any]]]]:
                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.657757 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/dask_buffer.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def from_buffer(cls, buffer: BufferWrapper):
                               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.668308 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/shmqueue.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    shm_name: str
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.669130 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def assign_cudas(cudas: Union[int, Iterable[int]]) -> Iterable[int]:
                          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.679682 #1]  INFO -- : Skipping file ./src/libertem/executor/utils/dask_inplace.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 85
    def __setitem__(self, key, value: Union[nt.ArrayLike, Number]):
                                    ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.682174 #1]  INFO -- : Skipping file ./src/libertem/executor/concurrent.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    def __init__(self, msg_queue: WorkerQueue):
                                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.697027 #1]  INFO -- : Skipping file ./src/libertem/executor/cli.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 34
    @click.option('-l', '--log-level', help=f"set logging level. Default is 'info'. {log_values}",
                                                                                                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.699417 #1]  INFO -- : Skipping file ./src/libertem/executor/delayed.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    def __init__(self, udfs: list[UDF], debug: bool = False, progress_reporter: Any = None):
                           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.720803 #1]  INFO -- : Skipping file ./src/libertem/executor/pipelined.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 49
    request: "WorkerQueue"
           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.723672 #1]  INFO -- : Skipping file ./src/libertem/api.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 79
    task_results: Generator[UDFResults, None, None],
                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.750910 #1]  INFO -- : Skipping file ./src/libertem/common/shape.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    def __init__(self, shape: "ShapeLike", sig_dims: int):
                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.753763 #1]  INFO -- : Skipping file ./src/libertem/common/messageconverter.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 6
    SCHEMA: Optional[dict] = None
          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.768474 #1]  INFO -- : Skipping file ./src/libertem/common/threading.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 147
    f"Attempting to set threads to {n}, which is larger than "
                                                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.771539 #1]  INFO -- : Skipping file ./src/libertem/common/executor.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 51
    threads_per_worker: Optional[int],
                      ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.780789 #1]  INFO -- : Skipping file ./src/libertem/common/tracing.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 18
    service_name: str,
                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.788716 #1]  INFO -- : Skipping file ./src/libertem/common/backend.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 23
    def get_use_cuda() -> Optional[int]:
                       ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.797707 #1]  INFO -- : Skipping file ./src/libertem/common/win_tweaks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    return f"{domain}\\{name}"
                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.805568 #1]  INFO -- : Skipping file ./src/libertem/common/sparse.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    def to_sparse(a, shape: Optional[Union['Shape', tuple[int, ...]]] = None):
                          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.810021 #1]  INFO -- : Skipping file ./src/libertem/common/scheduler.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def __init__(self, workers: list["Worker"]):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.822794 #1]  INFO -- : Skipping file ./src/libertem/common/numba/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 116
    raise ValueError(f"Shape of left_dense is not 2D, but {left_dense.shape}.")
                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.825130 #1]  INFO -- : Skipping file ./src/libertem/common/numba/cache.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 105
    logger.info(f"numba cache miss {self._name} {self._py_func}")
                                                               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.840705 #1]  INFO -- : Skipping file ./src/libertem/common/container.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 33
    def _build_sparse(m, dtype: npt.DTypeLike, sparse_backend: SparseSupportedT, backend: ArrayBackend):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.840794 #1]  INFO -- : Skipping file ./src/libertem/common/analysis.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    raw_data: np.ndarray,
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.858049 #1]  INFO -- : Skipping file ./src/libertem/common/viz.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    def encode_image(result, save_kwargs: Optional[dict] = None) -> BytesIO:
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.859954 #1]  INFO -- : Skipping file ./src/libertem/common/async_utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    raise MyStopIteration() from e
                               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.875476 #1]  INFO -- : Skipping file ./src/libertem/common/slice.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    def __init__(self, origin: Sequence[int], shape: Shape):
                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.888656 #1]  INFO -- : Skipping file ./src/libertem/common/udf.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    depth: Union[int, TileDepthEnum]
         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.891216 #1]  INFO -- : Skipping file ./src/libertem/common/buffers.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    while batch := tuple(itertools.islice(it, n)):
                 ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.904752 #1]  INFO -- : Skipping file ./src/libertem/common/progress.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def __init__(self, queue: 'WorkerQueue', subscriptions: dict[str, list[Callable]]):
                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.916239 #1]  INFO -- : Skipping file ./src/libertem/contrib/daskadapter.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 24
    def make_dask_array(dataset: DataSet, dtype='float32', roi=None,
                               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.920427 #1]  INFO -- : Skipping file ./src/libertem/common/math.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    def prod(iterable: Iterable[ProdAccepted]):
                     ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.933651 #1]  INFO -- : Skipping file ./src/libertem/contrib/convert_transposed.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 19
    def _ds_shape(self) -> Shape:
                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.949197 #1]  INFO -- : Skipping file ./src/libertem/analysis/masks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 68
    desc=f'{self.get_description()} lin-scaled'
                                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.963965 #1]  INFO -- : Skipping file ./src/libertem/analysis/rawfft.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 25
    f"pickfft_analysis = PickFFTFrameAnalysis(dataset=ds, parameters={self.params})",
                                                                                   ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.964731 #1]  INFO -- : Skipping file ./src/libertem/analysis/clust.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 64
    f"{indent}sd_udf_results = ctx.run_udf(dataset=ds, udf=stddev_udf, roi=roi,"
                                                                               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.979751 #1]  INFO -- : Skipping file ./src/libertem/analysis/disk.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.984956 #1]  INFO -- : Skipping file ./src/libertem/analysis/radialfourier.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 43
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:57.998578 #1]  INFO -- : Skipping file ./src/libertem/analysis/fullmatch.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 263
    def _do_match(self, point_selection: grm.PointSelection, zero, polar_vectors):
                                       ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.000739 #1]  INFO -- : Skipping file ./src/libertem/analysis/sum.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    f"{roi}",
           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.013955 #1]  INFO -- : Skipping file ./src/libertem/analysis/raw.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.016684 #1]  INFO -- : Skipping file ./src/libertem/analysis/apply_fft_mask.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 22
    temp_analysis = [f"fft_analysis = ApplyFFTMask(dataset=ds, parameters={self.params})",
                                                                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.029166 #1]  INFO -- : Skipping file ./src/libertem/analysis/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    TYPE: Literal["UDF"] = "UDF"
        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.037664 #1]  INFO -- : Skipping file ./src/libertem/analysis/gridmatching.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 37
    def __init__(self, correlation_result: CorrelationResult, selector=None):
                                         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.045251 #1]  INFO -- : Skipping file ./src/libertem/analysis/com.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 59
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.061436 #1]  INFO -- : Skipping file ./src/libertem/analysis/sd.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 31
    f"{roi}",
           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.068001 #1]  INFO -- : Skipping file ./src/libertem/analysis/sumfft.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    temp_analysis = [f"sumfft_analysis = SumfftAnalysis(dataset=ds, parameters={self.params})",
                                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.075407 #1]  INFO -- : Skipping file ./src/libertem/analysis/fem.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 29
    params = f"center=({cx},{cy}), rad_in={ri}, rad_out={ro}"
                                                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.091210 #1]  INFO -- : Skipping file ./src/libertem/analysis/sumsig.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    temp_analysis = [f"sumsig_analysis = SumSigAnalysis(dataset=ds, parameters={self.params})",
                                                                                             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.103299 #1]  INFO -- : Skipping file ./src/libertem/analysis/point.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    params.append(f'x={x}')
                         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.107791 #1]  INFO -- : Skipping file ./src/libertem/analysis/ring.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    params.append(f'{k}={self.params[k]}')
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.115269 #1]  INFO -- : Skipping file ./src/libertem/analysis/helper.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    short_name: Optional[str] = None
              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.123760 #1]  INFO -- : Skipping file ./src/libertem/web/connect.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def initialize(self, state: SharedState, event_registry: "EventRegistry"):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.128194 #1]  INFO -- : Skipping file ./src/libertem/web/events.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 44
    def initialize(self, state: SharedState, event_registry: EventRegistry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.136597 #1]  INFO -- : Skipping file ./src/libertem/web/generator.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.143834 #1]  INFO -- : Skipping file ./src/libertem/web/browse.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 12
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.153235 #1]  INFO -- : Skipping file ./src/libertem/web/helpers.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 8
    def _int_or_zero(value) -> int:
                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.168598 #1]  INFO -- : Skipping file ./src/libertem/web/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    async def result_images(results: AnalysisResultSet, pool, save_kwargs=None):
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.169448 #1]  INFO -- : Skipping file ./src/libertem/web/event_bus.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    async def run(self):
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.185982 #1]  INFO -- : Skipping file ./src/libertem/web/analysis.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.186813 #1]  INFO -- : Skipping file ./src/libertem/web/rpc.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 33
    self, state: "SharedState", compound_analysis_id: str, engine: "JobEngine"
               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.197820 #1]  INFO -- : Skipping file ./src/libertem/web/cli.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    f'{token_path} is empty! Refusing to start with insecure configuration.'
                                                                           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.201517 #1]  INFO -- : Skipping file ./src/libertem/web/server.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.215352 #1]  INFO -- : Skipping file ./src/libertem/web/messages.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 122
    def job_progress(self, job_id: str, state: ProgressState, event: str):
                                 ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.250950 #1]  INFO -- : Skipping file ./src/libertem/web/notebook_generator/code_template.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def __repr__(self) -> str:
                       ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.260159 #1]  INFO -- : Skipping file ./src/libertem/web/config.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.268080 #1]  INFO -- : Skipping file ./src/libertem/web/jobs.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    def initialize(self, state: SharedState, event_registry: "EventRegistry"):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.277679 #1]  INFO -- : Skipping file ./src/libertem/web/engine.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 43
    state: SharedState,
         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.285677 #1]  INFO -- : Skipping file ./src/libertem/web/shutdown.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 10
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.303498 #1]  INFO -- : Skipping file ./src/libertem/web/state.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 45
    event_bus: EventBus,
             ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.312146 #1]  INFO -- : Skipping file ./src/libertem/web/dataset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 63
    def initialize(self, state: SharedState, event_registry):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.319440 #1]  INFO -- : Skipping file ./src/libertem/web/models.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    id: str
      ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.334869 #1]  INFO -- : Skipping file ./src/libertem/io/fs.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 17
    def _access_ok(path: Path):
                       ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.345010 #1]  INFO -- : Skipping file ./src/libertem/io/writers/results/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    registry: dict = {}
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.402970 #1]  INFO -- : Skipping file ./src/libertem/io/corrections/detector.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 290
    f"Empty repair environments for pixel(s) number {empty}."
                                                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.421354 #1]  INFO -- : Skipping file ./src/libertem/io/corrections/corrset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 102
    dark: Optional[np.ndarray] = None,
        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.451073 #1]  INFO -- : Skipping file ./src/libertem/io/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 21
    dataset_shape: Shape,
                 ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.458434 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/raw_csr.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 28
    def load_toml(path: str):
                      ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.473584 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/mrc.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 259
    return f"<MRCDataSet for {self._path}>"
                                          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.477800 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/empad.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 56
    raise ValueError(f"unknown type: {typ.text}")
                                               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.490101 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/dm_single.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 95
    path: os.PathLike,
        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.496437 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/ser.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 223
    raise DataSetException("invalid dataset: %s" % e) from e
                                                         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.509639 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/frms6.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 382
    self, start_at_frame: int, stop_before_frame: int,
                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.514438 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/tvips.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 114
    version: int
           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.529221 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/seq.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 461
    path: str,
        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.532945 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/mib.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 107
    def _pattern(path: str) -> str:
                     ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.547134 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/dask.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 137
    def __init__(self, dask_array, *, sig_dims, preserve_dimensions=True,
                                    ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.595549 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/raw.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 247
    return f"<RawFileDataSet of {self.dtype} shape={self.shape}>"
                                                                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.613800 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/dm.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 66
    SCHEMA: dict = {}
          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.616359 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/blo.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 228
    raise DataSetException(f"invalid magic number: {magic:x} != {MAGIC_EXPECT:x}")
                                                                                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.634570 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/roi.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 11
    def _roi_to_nd_indices(roi, part_slice: Slice):
                                          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.688955 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    registry: dict[str, type["IOBackend"]] = {}
            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.707381 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/file.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 14
    file_offset: int  # number of bytes to skip at the beginning of the file
               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.707437 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/meta.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 41
    shape: Shape,
         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.725379 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/tiling_scheme.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 27
    self, slices: list[Slice],
                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.725844 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend_direct.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 7
    class DirectBackend(IOBackend, id_="direct"):
                                      ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.737038 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/coordinates.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 8
    def get_coordinates(slice_: Slice, ds_shape: Shape, roi=None) -> np.ndarray:
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.746732 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/partition.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 53
    meta: DataSetMeta,
        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.750692 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/tiling.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 284
    def flat_data(self) -> np.ndarray:
                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.768625 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend_buffered.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 208
    class BufferedBackend(IOBackend, id_="buffered"):
                                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.784898 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/utils.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 32
    def __init__(self, low: int, high: int, value: typing.Any, idx: int,
                          ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.786655 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/backend_mmap.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 68
    class MMapBackend(IOBackend, id_="mmap"):
                                    ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.802946 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/dataset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 26
    def __init__(self, io_backend: Optional["IOBackend"] = None):
                                 ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.804103 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/base/fileset.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 20
    self, files: list[File],
               ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.822445 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/hdf5.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 71
    def _ensure_2d_nav(nav_shape: tuple[int, ...]) -> tuple[int, int]:
                                ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.840281 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/npy.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 67
    dtype: str
         ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.842043 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/k2is.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 686
    self, start_at_frame: int, stop_before_frame: int,
                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.858399 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/cached.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 34
    def __init__(self, dataset: str, partition: int, size: int, path: str):
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.859688 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/__init__.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 36
    def build_extension_map() -> dict[str, list[str]]:
                              ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.876990 #1]  INFO -- : Skipping file ./src/libertem/io/dataset/memory.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 93
    sync_offset, corrections, array_backend: ArrayBackend,
                                           ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.877831 #1]  INFO -- : Skipping file ./src/libertem/udf/masks.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 13
    def __init__(self, masks: MaskContainer, meta: UDFMeta, use_torch: bool):
                            ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.896644 #1]  INFO -- : Skipping file ./src/libertem/udf/stddev.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 299
    def __init__(self, dtype=None, use_numba=True) -> None:
                                                   ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.915148 #1]  INFO -- : Skipping file ./src/libertem/udf/holography.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 123
    raise ValueError(f"invalid sb_position {sb_position!r}, must be tuple of length 2")
                                                                                     ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.936383 #1]  INFO -- : Skipping file ./src/libertem/udf/base.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 71
    gen: Generator[tuple[tuple["UDFData", ...], TaskProtocol], None, None],
       ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:58.957451 #1]  INFO -- : Skipping file ./src/libertem/udf/com.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 38
    cy: Optional[float] = None
      ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:59.025472 #1]  INFO -- : Skipping file ./src/libertem/udf/record.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 30
    def _ds_shape(self) -> Shape:
                        ^
SyntaxError: invalid syntax


I, [2024-04-09T12:23:59.077423 #1]  INFO -- : Skipping file setup.py due to exception (CC::Engine::Analyzers::ParserError): `python2 /usr/src/app/lib/cc/engine/analyzers/python/parser.py` exited with code 1:
Traceback (most recent call last):
  File "/usr/src/app/lib/cc/engine/analyzers/python/parser.py", line 51, in <module>
    print(json.dumps(to_json(ast.parse(source))))
  File "/usr/local/python2/lib/python2.7/ast.py", line 37, in parse
    return compile(source, filename, mode, PyCF_ONLY_AST)
  File "<unknown>", line 61
    f"copying client: {build} -> {client}",
                                         ^
SyntaxError: invalid syntax
7
sonar-python
sonar-python engine documentation
View output
INFO: Java 1.8.0_111-internal Oracle Corporation (64-bit)
INFO: Linux 4.4.0-1128-aws amd64
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-core-2.17.0.899.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/src/app/build/libs/sonarlint-cli-2.1.0.566.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [ch.qos.logback.classic.util.ContextSelectorStaticBinder]
INFO: Index files
INFO: Invalid character encountered in file '/code/examples/live-plotting-grid.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-hires.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/16x16/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/48x48/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/256x256/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/32x32/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/icons/512x512/apps/libertem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-hires-transparent.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo icon-512-white.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-medium.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo icon-256-white.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/logo/LiberTEM logo-transparent.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/corporatedesign/fonts/Audiowide-Regular.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-4bc359c2.woff' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-8b4e1b84.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/flags-94d5c7f1.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-cb7f81f5.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-434466b5.woff2' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-4537fa06.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-67172172.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/LiberTEM logo-medium-af9fe367.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-42e369dc.ttf' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/outline-icons-4d288344.woff2' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-9fafd6c3.woff' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-d023c55f.eot' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/icons-95b6a484.woff' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/assets/brand-icons-e7d4d534.woff2' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/src/libertem/web/client/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/client/public/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/client/src/images/LiberTEM logo-medium.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/_static/logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/1.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/pickcrystalline.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatawithoutmasking.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/second.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/mode.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatapickam.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/2.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatawithmasking.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/pickam.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/first.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/newdatapickcryst.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/phasechange/interf.PNG' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/fem/fem-select.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/fem/fem.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/fem/fem-pick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/holograms.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/amplitude_phase.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/amp_comparison.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/phase_comparison.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/holography/FFT_reference.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/radialfourier-channel.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/radialfourier-pick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/radialfourier.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/app/images/radialfourier/select.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/performance/CPU-bound-single-node.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/performance/IO-bound-madmax.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/FZJ.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/favicon.ico' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/forking_button.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/app/com-example.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/EU.jpg' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/jaeger-tracing-visualization.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/tree-default-merge.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Helmholtz-lower.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/architecture.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/udf-diagram.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/tree-merge-all.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Principle.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/AIDAS-logo.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Helmholtz.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/read_from_hdfs_profile.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/GSoC-icon-192.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/jupyter-hub.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/apply.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/download-modal.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/pick.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/create.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/rect.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/type.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/add_analysis.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/browse.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/load.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/star.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/adjust.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/open.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/image.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/pick_frame.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/copy-jupyter.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/jupyter-lab.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/download-btn.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/download-jupyter.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/com.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/use/std_dev.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Future.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/images/Gatan-logo-vertical.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: Invalid character encountered in file '/code/docs/source/udf/live-plotting-grid.png' at line 1 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
INFO: 616 files indexed
ERROR: Unable to parse file: /code/src/libertem/viz/mpl.py
ERROR: Parse error at line 74 column 20:

   72: __init__(
   73:             self, dataset, udf, roi=None, channel=None, title=None, min_delta=0.5, udfresult=None,
  -->              **kwargs,
   75:     ):
   76:         super().__init__(
   77:             dataset=dataset,
   78:             udf=udf,
   79:             roi=roi,
   80:             channel=channel,
   81:             title=title

ERROR: Unable to parse file: /code/src/libertem/utils/devices.py
ERROR: Parse error at line 26 column 8:

   18: e:
   19: 
   20: 
   21:     warnings.warn(repr(e), RuntimeWarning)
   22:     cupy = None
   23: 
   24: 
   25: class DetectResult(TypedDict):
  -->      cpus: list[int]
   27:     cudas: list[int]
   28:     has_cupy: bool
   29: 
   30: 
   31: def detect() -> DetectResult:
   32:     '''
   33:     Detect which devices are present
   34: 
   35:     .. versionadded:: 0.6.0
   36: 
   37:     Returns
   38:     -------
   39:     dict
   40:         Dictionary with keys :code:`'cpus'` and :code:`'cudas'`
   41:         Each containing
   42:         a list of devices. Only physical CPU cores are counted, i.e. no
   43:         hyperthreading.
   44:         Additionally it has the key :code:`'has_cupy'`, which signals
   45:         if cupy is installed and available.
   46:     '''
   47: 

ERROR: Unable to parse file: /code/src/libertem/executor/dask.py
ERROR: Parse error at line 259 column 10:

  249: : task_result,
  250:         "task_id": task_id,
  251:     }
  252: 
  253: 
  254: def _simple_run_task(task):
  255:     return task()
  256: 
  257: 
  258: class CommonDaskMixin:
  -->      client: dd.Client
  260: 
  261:     def _task_idx_to_workers(self, workers: WorkerSet, idx: int) -> WorkerSet:
  262:         hosts = list(sorted(

ERROR: Unable to parse file: /code/src/libertem/executor/utils/shmqueue.py
ERROR: Parse error at line 18 column 12:

   11: libertem.common.executor import WorkerQueue, WorkerQueueEmpty
   12: 
   13: if TYPE_CHECKING:
   14:     from multiprocessing import shared_memory
   15: 
   16: 
   17: class PoolAllocation(NamedTuple):
  -->      shm_name: str
   19:     handle: int                                       
   20:     full_size: int                                                             
   21:     req_size: int                             
   22: 
   23:     def resize(self, new_req_size) -> "PoolAllocation":
   24:         assert new_req_size

ERROR: Unable to parse file: /code/src/libertem/executor/pipelined.py
ERROR: Parse error at line 49 column 11:

   41: get_tracer(__name__)
   42: logger = logging.getLogger(__name__)
   43: 
   44: 
   45: T = TypeVar('T')
   46: 
   47: 
   48: class WorkerQueues(NamedTuple):
  -->      request: "WorkerQueue"
   50:     response: "WorkerQueue"
   51:     message: "WorkerQueue"
   52: 
   53: 
   54: class WorkerSpec(TypedDict):
   55:     name: str
   56:     device_id: int
   57:     device_kind:

ERROR: Unable to parse file: /code/src/libertem/api.py
ERROR: Parse error at line 243 column 4:

  240: ] = None,
  241:         gpus: Optional[Union[int, Iterable[int]]] = None,
  242:         plot_class: Optional['Live2DPlot'] = None,
  -->      ) -> 'Context':
  244:         '''
  245:         Create a Context with a specific kind of executor.
  246: 
  247:         .. versionadded:: 0.9.0
  248: 
  249:         This simplifies creating a :class:`Context` for a number of common executor
  250:         choices and allows specification of the resources used to create the executor.
  251:         For more fine-grained control of resource allocation create the
  252:         executor manually and pass it to the :class:`Context`.
  253: 
  254:         See :ref:`executors` for general information on executors.
  255: 
  256:         .. versionchanged:: 0.12.0
  257: 
  258:             Prior to version 0.12.0, this function accepted :code:`*args, **kwargs`
  259:             and passed them to the initializer of :class:`Context`. Given that the
  260:             Context accepts only the :code:`plot_class` keyword-argument this was
  261:             hard-coded into this function for backwards-compatibility, enabling
  262:             the addition of the :code:`cpus` and :code:`gpus` parameters.
  263: 
  264:         Parameters
  265:         ----------
  266: 
  267:         executor_spec : ExecutorSpecType, optional, by default "dask"
  268:             A string identifier for executor variants:
  269: 
  270:             "synchronous", "inline":
  271:                 Use a single-process, single-threaded
  272:                 :class:`~libertem.executor.inline.InlineJobExecutor`
  273:             "threads":
  274:                 Use a multi-threaded :class:`~libertem.executor.concurrent.ConcurrentJobExecutor`
  275:             "dask":
  276:                 Create a standard :class:`~libertem.executor.dask.DaskJobExecutor` without
  277:                 considering any pre-existing Dask schedulers available on the system, similar to
  278:                 the default behaviour of :code:`Context()` called with no arguments.
  279:             "dask-integration":
  280:                 Use a JobExecutor that is compatible with the currently active Dask scheduler.
  281:                 See :func:`~libertem.executor.integration.get_dask_integration_executor` for
  282:                 more information.
  283:             "dask-make-default":
  284:                 Create a local :code:`dask.distributed` cluster and client
  285:                 using :meth:`~libertem.executor.dask.DaskJobExecutor.make_local`.
  286:                 The Client will be set as the default Dask scheduler and will
  287:                 persist after the LiberTEM Context closes, which is suitable for downstream
  288:                 computation using :code:`dask.distributed`.
  289:             "delayed":
  290:                 Create a :class:`~libertem.executor.delayed.DelayedJobExecutor` which performs
  291:                 computation using `dask.delayed <https://docs.dask.org/en/stable/delayed.html>`_.
  292:                 This functionality is highly experimental at this time, see
  293:                 :ref:`delayed_udfs` for more information.
  294:             "pipelined":
  295:                 Create a :class:`~libertem.executor.pipelined.PipelinedExecutor`,
  296:                 which is suitable for multi-process streaming live processing
  297:                 using `LiberTEM-live <https://libertem.github.io/LiberTEM-live/>`_
  298:         cpus : int | Iterable[int], optional
  299:             The number of CPU workers to create, where possible. The meaning of
  300:             CPU worker depends on the type of executor created - threaded executors
  301:             will interpret :code:`cpus` to choose the number of threads, while process-based
  302:             executors will interpret the value to choose the number of processes to spawn.
  303:             The iterable form of of the argument is intended contain CPU-id values to
  304:             enable cpu-pinning where the exector and the system support it, but most
  305:             use cases will only require an integer argument. Executors where this
  306:             parameter does not make sense will raise an error if provided.
  307:             When unspecified the default executor behaviour is retained.
  308:         gpus : int | Iterable[int], optional
  309:             Similar to :code:`cpus`, specifies the number of GPU workers to create
  310:             where the executor chosen supports it, else raise an error. The integer
  311:             form of the argument specifies the total number of workers to create,
  312:             assigned according to the implementation of each executor, while
  313:             the iterable form allows assigment of multiple workers to specific GPUs
  314:             by repeating the id of any given GPU in the argument.
  315:             When unspecified the default executor behaviour is retained.
  316:         plot_class : libertem.viz.base.Live2DPlot, optional
  317:             Plot class for live plotting, passed to :class:`Context`.
  318: 
  319:         Raises
  320:         ------
  321:         libertem.common.exceptions.ExecutorSpecException :
  322:             for invalid executor choice or unsupported worker specifications
  323: 
  324:         Returns
  325:         -------
  326:         Instance of :class:`Context` using a new instance of the specified executor.
  327:         '''
  328: 
  329: 
  330:         cpu_spec = cpus is not None
  331:         gpu_spec = gpus is not None
  332:         has_spec = cpu_spec or gpu_spec
  333:         limited_execs

ERROR: Unable to parse file: /code/src/libertem/common/messageconverter.py
ERROR: Parse error at line 6 column 10:

    1: from typing import Optional
    2: import jsonschema
    3: 
    4: 
    5: class MessageConverter:
  -->      SCHEMA: Optional[dict] = None
    7: 
    8:     def validate(self, raw_data):
    9:         if self.SCHEMA is None:
   10:             raise NotImplementedError(

ERROR: Unable to parse file: /code/src/libertem/common/executor.py
ERROR: Parse error at line 521 column 14:

  512: NotImplementedError()
  513: 
  514: 
  515: class SimpleWorkerQueue(WorkerQueue):
  516:     """
  517:     A :class:`WorkerQueue` that uses a threading :class:`python:queue.Queue`
  518:     under the hood.
  519:     """
  520:     def __init__(self) -> None:
  -->          self.q: queue.Queue = queue.Queue()
  522: 
  523:     def put(self, header, payload: Optional[memoryview] = None):
  524: 

ERROR: Unable to parse file: /code/src/libertem/common/container.py
ERROR: Parse error at line 146 column 24:

  139: :
  140:             backend = 'numpy'
  141:         self.backend = backend
  142:         self._get_masks_for_slice = {}
  143: 
  144: 
  145:         self._default_sparse = default_sparse
  -->          self._use_sparse: Union[Literal[False], None, SparseSupportedT]
  147: 
  148: 
  149: 
  150:         if use_sparse is True:
  151:             self._use_sparse = default_sparse
  152:         elif use_sparse is

ERROR: Unable to parse file: /code/src/libertem/common/udf.py
ERROR: Parse error at line 24 column 9:

   16: = object()
   17: 
   18: 
   19: class TileSizeEnum(Enum):
   20:     TILE_SIZE_BEST_FIT = object()
   21: 
   22: 
   23: class TilingPreferences(TypedDict):
  -->      depth: Union[int, TileDepthEnum]
   25:     total_size: Union[float, int]
   26: 
   27: 
   28: class UDFMethod(Enum):
   29:     TILE = 'tile'
   30: 

ERROR: Unable to parse file: /code/src/libertem/common/buffers.py
ERROR: Parse error at line 19 column 21:

   14: , n):
   15: 
   16:         if n < 1:
   17:             raise ValueError('n must be at least one')
   18:         it = iter(iterable)
  -->          while batch := tuple(itertools.islice(it, n)):
   20:             yield batch
   21: 
   22: import numba
   23: import numpy as np
   24: 
   25: from

ERROR: Unable to parse file: /code/src/libertem/common/progress.py
ERROR: Parse error at line 82 column 23:

   71: topic, msg)
   72:                                 exceptKeyError:
   73:                     pass
   74: 
   75: 
   76: class ProgressState(NamedTuple):
   77:     """
   78:     Container for progress state, used to communicate
   79:     from ProgressManager to ProgressReporter
   80:     """
   81: 
  -->      num_frames_complete: float
   83: 
   84:     num_frames_total: int
   85: 
   86:     num_part_complete: int
   87: 
   88:     num_part_in_progress: int
   89: 
   90:     num_part_total: int
   91: 
   92: 
   93:     progress_id: str
   94: 
   95: 
   96: class ProgressReporter:
   97:     """
   98:     Interface for progress bar display / updating
   99: 
  100:     This class will receive :class:`ProgressState`
  101:     instances to notify it about the start, progression
  102:     and end of a job submitted to the :code:`UDFRunner`.
  103:     The implementation should be adapted to display or
  104:     log the progress as required for the use case.
  105: 
  106:     It is possible that multiple jobs are submitted
  107:     to a single executor at the same time and therefore
  108:     the implementation should ensure that concurrent instances
  109:     of the class display correctly, or that the same instance
  110:     of the class can handle updates from multiple threads
  111:     concurrently. Each :class:`ProgressState` message contains a field
  112:     :code:`progress_id` which is unique to each job, and therefore
  113:     the implementation can use this to distinguish updates from
  114:     multiple sources.
  115:     """

ERROR: Unable to parse file: /code/src/libertem/common/math.py
ERROR: Parse error at line 39 column 7:

   32: )
   33:         else:
   34:             raise ValueError()
   35:         returnresult
   36: 
   37: 
   38: def count_nonzero(array) -> int:
  -->      nnz: int            
   40:     try:
   41:         nnz = np.count_nonzero(array)
   42:     except TypeError:
   43:         sparse_a = assert_sparse(array)
   44:         nnz

ERROR: Unable to parse file: /code/src/libertem/contrib/convert_transposed.py
ERROR: Parse error at line 47 column 16:

   39: flat_sig_origin:flat_sig_origin + n_sig_px
   40:         ] = partition
   41: 
   42: 
   43: def _convert_transposed_ds(
   44:     ctx: 'Context',
   45:     ds: 'DataSet',
   46:     out_path: os.PathLike,
  -->      **run_kwargs,
   48: ):
   49:     ctx.run_udf(
   50:         ds,
   51:         ConvertTransposedDatasetUDF(
   52:             out_path,
   53:         ),
   54:         **run_kwargs,
   55:     )
   56: 
   57: 
   58: def convert_dm4_transposed(
   59:     dm4_path: os.

ERROR: Unable to parse file: /code/src/libertem/analysis/base.py
ERROR: Parse error at line 37 column 8:

   15: .helper import GeneratorHelper
   16:     from libertem.web.rpc import ProcedureProtocol
   17:     import numpy.typing as nt
   18: 
   19: 
   20: class Analysis:
   21:     """
   22:     Abstract base class for Analysis classes.
   23: 
   24:     An Analysis is the interface between a UDF and the Web API, and handles
   25:     visualization of partial and full results.
   26: 
   27:     Passing an instance of an :class:`Analysis` sub-class to
   28:     :meth:`libertem.api.Context.run` will generate an :class:`AnalysisResultSet`.
   29:     The content of this result set is governed by the specific implementation of
   30:     the :code:`Analysis` sub-class.
   31: 
   32:     .. versionadded:: 0.3.0
   33: 
   34:     .. versionchanged:: 0.7.0
   35:         Removed deprecated methods :code:`get_results` and :code:`get_job`
   36:     """
  -->      TYPE: Literal["UDF"] = "UDF"
   38:     registry: dict[str, "type[Analysis]"] = {}
   39: 
   40:     def __init__(self, dataset: DataSet, parameters

ERROR: Unable to parse file: /code/src/libertem/analysis/helper.py
ERROR: Parse error at line 14 column 14:

    1: from typing import Optional
    2: from libertem.web.notebook_generator.template import TemplateBase
    3: 
    4: 
    5: class GeneratorHelper(TemplateBase):
    6:     """
    7:     Helper class for generating code corresponding to analysis.
    8: 
    9:     code for creating and running analysis, saving the result,
   10:     plotting the result, documentation, specific dependencies
   11:     are generated.
   12:     """
   13: 
  -->      short_name: Optional[str] = None
   15:     api: Optional[str] = None
   16: 
   17:     def __init__(self, params):
   18:         self.params

ERROR: Unable to parse file: /code/src/libertem/web/state.py
ERROR: Parse error at line 51 column 28:

   47: : typing.Optional[float] = None,
   48:     ):
   49:         self.executor = None
   50:         self.cluster_params = {}
  -->          self.cluster_details: typing.Optional[list] = None
   52:         self.context: typing.Optional[Context] = None
   53:         self._event_bus = event_bus
   54:         self

ERROR: Unable to parse file: /code/src/libertem/web/dataset.py
ERROR: Parse error at line 102 column 20:

   90: time()
   91: 
   92: 
   93: 
   94: 
   95: 
   96: 
   97: 
   98: 
   99:         log.info("warmup done, took %.3fs", (t1 - t0))
  100: 
  101:     async def put(self, uuid):
  -->          request_data: dict = tornado.escape.json_decode(self.request.body)
  103:         params = request_data['dataset']['params']
  104:         params["type"]

ERROR: Unable to parse file: /code/src/libertem/web/models.py
ERROR: Parse error at line 17 column 6:

   12: from libertem.udf.base import UDFResults
   13:     from libertem.io.dataset.base import DataSet
   14: 
   15: 
   16: class JobInfo(TypedDict):
  -->      id: str
   18:     analysis: str
   19:     dataset: str
   20: 
   21: 
   22: class SerializedJobInfo(TypedDict):
   23:     id: str
   24:     analysis: str
   25: 
   26: 
   27: AnalysisParameters

ERROR: Unable to parse file: /code/src/libertem/io/writers/results/base.py
ERROR: Parse error at line 13 column 12:

    1: from libertem.common.analysis import AnalysisResultSet
    2: 
    3: 
    4: class ResultFormatRegistry(type):
    5:     """
    6:     This is a metaclass to make ResultFormat subclasses register
    7:     themselves. On import of the module the subclass is implemented in,
    8:     the __init__ method is called, which in turn asks the class
    9:     about their ID, a description, ...
   10:     """
   11: 
   12: 
  -->      registry: dict = {}
   14: 
   15:     def __init__(cls, name, args, bases):
   16:         format_info = cls.format_info()
   17:         if format_info

ERROR: Unable to parse file: /code/src/libertem/io/utils.py
ERROR: Parse error at line 41 column 19:

   23: [int] = None
   24: ) -> tuple[int, ...]:
   25:     """
   26:     Calculate partition shape for the given ``target_size_items``
   27: 
   28:     Parameters
   29:     ----------
   30: 
   31:     dataset_shape
   32:         "native" dataset shape
   33: 
   34:     target_size_items
   35:         target partition size in number of items/pixels
   36: 
   37:     min_num
   38:         minimum number of partitions
   39:     """
   40:     sig_size = dataset_shape.sig.size
  -->      current_p_shape: tuple[int, ...] = ()
   42: 
   43:     if min_num is None:
   44:         min_num = 1
   45: 
   46:     target_size_items = min(target_size_items

ERROR: Unable to parse file: /code/src/libertem/io/dataset/raw_csr.py
ERROR: Parse error at line 74 column 15:

   68: :
   69:             data["sync_offset"] = raw_data["sync_offset"]
   70:         return data
   71: 
   72: 
   73: class CSRDescriptor(typing.NamedTuple):
  -->      indptr_file: str
   75:     indptr_dtype: np.dtype
   76:     indices_file: str
   77:     indices_dtype: np.dtype
   78:     data_file: str
   79:     data_dtype: np.dtype
   80: 
   81: 
   82: 

ERROR: Unable to parse file: /code/src/libertem/io/dataset/tvips.py
ERROR: Parse error at line 114 column 11:

  106: ,
  107:     ('DENS_Bias_R', 'float32'),
  108:     ('DENS_Bias_limit_U', 'float32'),
  109:     ('DENS_Bias_limit_I', 'float32'),
  110: ]
  111: 
  112: 
  113: class SeriesHeader(NamedTuple):
  -->      version: int
  115:     xdim: int
  116:     ydim: int
  117:     xbin: int
  118:     ybin: int
  119:     bpp: int
  120:     pixel_size_nm: int
  121:     high_tension_kv: int

ERROR: Unable to parse file: /code/src/libertem/io/dataset/mib.py
ERROR: Parse error at line 735 column 21:

  728:             return np.dtype("u1")
  729: 
  730: 
  731: MIBKind = Literal['u', 'r']
  732: 
  733: 
  734: class HeaderDict(TypedDict):
  -->      header_size_bytes: int
  736:     dtype: "nt.DTypeLike"
  737:     mib_dtype: str
  738:     mib_kind: MIBKind
  739:     bits_per_pixel: int
  740:     image_size: tuple[int, int]
  741:     image_size_bytes:

ERROR: Unable to parse file: /code/src/libertem/io/dataset/dm.py
ERROR: Parse error at line 66 column 10:

   60: raw_data:
   61:                 data[k] = raw_data[k]
   62:                 returndata
   63: 
   64: 
   65: class StackedDMDatasetParams(MessageConverter):
  -->      SCHEMA: dict = {}
   67: 
   68:     def convert_from_python(self, raw_data):
   69:         return super().convert_from_python(raw_data)
   70: 
   71:     def convert_to_python(

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/backend.py
ERROR: Parse error at line 14 column 12:

    5: numpy as np
    6: from sparseconverter import ArrayBackend
    7: 
    8: from .fileset import FileSet
    9: 
   10: log = logging.getLogger(__name__)
   11: 
   12: 
   13: class IOBackend:
  -->      registry: dict[str, type["IOBackend"]] = {}
   15:     id_: Optional[str] = None
   16: 
   17:     def __init_subclass__(cls, id_:

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/meta.py
ERROR: Parse error at line 55 column 18:

   51: array_backends = (NUMPY, CUDA)
   52:         self.array_backends = array_backends
   53:         if dtype is None:
   54:             dtype = raw_dtype
  -->          self.dtype: np.dtype = np.dtype(dtype)
   56:         self.raw_dtype: np.dtype = np.dtype(raw_dtype)
   57:         self.image_count

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/file.py
ERROR: Parse error at line 14 column 15:

    1: from typing import NamedTuple
    2: import numpy as np
    3: 
    4: from libertem.common.math import prod
    5: 
    6: 
    7: class OffsetsSizes(NamedTuple):
    8:     """
    9:     General slicing for slicing the data out of a file
   10:     (removing file header and per-frame headers)
   11:     """
   12: 
   13: 
  -->      file_offset: int                                                        
   15:     skip_end: int                                     
   16: 
   17: 
   18:     frame_offset: int                                                          
   19:     frame_size: int                                  
   20: 
   21: 
   22: class File:
   23:     """
   24:     A description of a file that is part of a dataset. Contains
   25:     information about the internal structure, like sizes
   26:     of headers, frames, frame headers, frame footers, ...
   27: 
   28:     Parameters
   29:     ----------
   30:     path : str
   31:         The path of the file. Interpretation may be backend-specific
   32: 
   33:     start_idx : int
   34:         Start index of signal elements in this file (inclusive),
   35:         in the flattened navigation axis
   36: 
   37:     end_idx : int
   38:         End index of signal elements in this file (exclusive),
   39:         in the flattened navigation axis
   40: 
   41:     native_dtype : np.dtype
   42:         The dtype that is used for reading the data. This may
   43:         match the "real" dtype of data, or in some cases, when
   44:         no direct match is possible (decoding is necessary),
   45:         it falls back to bytes (np.uint8)
   46: 
   47:     sig_shape : Shape | Tuple[int, ...]
   48:         The shape of each signal element
   49: 
   50:     file_header: int
   51:         Number of bytes to ignore at the beginning of the file
   52: 
   53:     frame_header: int
   54:         Number of bytes to ignore before each frame
   55: 
   56:     frame_footer: int
   57:         Number of bytes to ignore after each frame
   58:     """
   59:     def __init__(self, path,

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/partition.py
ERROR: Parse error at line 62 column 17:

   57: :
   58:         self.meta = meta
   59:         self.slice = partition_slice
   60:         self._io_backend = io_backend
   61:         self._decoder = decoder
  -->          self._idx: Optional[int] = None
   63:         if partition_slice.shape.nav.dims != 1:
   64:             raise ValueError("nav dims should be flat")
   65: 
   66:         @

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/backend_buffered.py
ERROR: Parse error at line 249 column 11:

  244: = direct_io
  245:         self._buffer_pool = BufferPool()
  246: 
  247:     @contextlib.contextmanager
  248:     def open_files(self, fileset: FileSet):
  -->          cls: type[BufferedFile]
  250:         if self._direct_io:
  251:             cls = DirectBufferedFile
  252:         else:
  253:             cls = BufferedFile
  254:         files = [

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/backend_mmap.py
ERROR: Parse error at line 169 column 12:

  163: ._handle is None:
  164:             raise RuntimeError("trying to access file handle of closed file")
  165:         return self._handle
  166: 
  167: 
  168: class MMapBackendImpl(IOBackendImpl):
  -->      FILE_CLS: type = MMapFile
  170: 
  171:     def __init__(self, enable_readahead_hints=False):
  172:         super().__init__()
  173:         self._enable_readahead = enable_readahead_hints

ERROR: Unable to parse file: /code/src/libertem/io/dataset/base/dataset.py
ERROR: Parse error at line 28 column 25:

   24: 1024*1024
   25: 
   26:     def __init__(self, io_backend: Optional["IOBackend"] = None):
   27:         self._cores = 1
  -->          self._sync_offset: Optional[int] = 0
   29:         self._sync_offset_info = None
   30:         self._image_count = 0
   31:         self._nav_shape_product = 0
   32:         self._io_backend =

ERROR: Unable to parse file: /code/src/libertem/io/dataset/hdf5.py
ERROR: Parse error at line 89 column 8:

   82: 1)
   83:     else:
   84:         raise ValueError(f'Incompatible nav_shape {nav_shape}')
   85:     return nav_shape
   86: 
   87: 
   88: class HDF5ArrayDescriptor(typing.NamedTuple):
  -->      name: str
   90:     shape: tuple[int, ...]
   91:     dtype: np.dtype
   92:     compression: Optional[str]
   93:     chunks: tuple

ERROR: Unable to parse file: /code/src/libertem/io/dataset/npy.py
ERROR: Parse error at line 67 column 9:

   62: data["sync_offset"] = int(raw_data["sync_offset"])
   63:         return data
   64: 
   65: 
   66: class NPYInfo(typing.NamedTuple):
  -->      dtype: str
   68:     shape: tuple[int, ...]
   69:     count: int
   70:     offset: int
   71: 
   72: 
   73: 
   74: 
   75: 
   76: 
   77: def _read_bytes(fp, size,

ERROR: Unable to parse file: /code/src/libertem/io/dataset/__init__.py
ERROR: Parse error at line 50 column 69:

   45: return ext_map
   46: 
   47: 
   48: @typing.overload
   49: def _auto_load(
  -->      path: str, enable_async: Literal[True], *args, executor, **kwargs,
   51: ) -> typing.Awaitable[DataSet]:
   52:     ...
   53: 
   54: 
   55: @typing.overload
   56: def _auto_load(
   57:     path: str,

ERROR: Unable to parse file: /code/src/libertem/udf/base.py
ERROR: Parse error at line 111 column 13:

  106: ["UDF"],
  107:     dtype: "nt.DTypeLike",
  108:     corrections: Optional[CorrectionSet],
  109:     array_backends: Iterable[ArrayBackend],
  110: ) -> "nt.DTypeLike":
  -->      tmp_dtype: "nt.DTypeLike"
  112:     if corrections is not None and corrections.have_corrections():
  113:         tmp_dtype = np.result_type(np.float32, dtype)
  114: 

ERROR: Unable to parse file: /code/src/libertem/udf/com.py
ERROR: Parse error at line 38 column 6:

   27: RegressionOptionsT = Union[np.ndarray, Literal[-1, 0, 1]]
   28: 
   29: 
   30: class CoMParams(NamedTuple):
   31:     """
   32:     Used to instantiate :class:`~libertem.udf.com.CoMUDF`.
   33: 
   34:     See :meth:`~libertem.udf.com.CoMUDF.with_params`
   35:     for descriptions of each parameter. In most cases use this
   36:     method rather than instantiating this class directly.
   37:     """
  -->      cy: Optional[float] = None
   39:     cx: Optional[float] = None
   40:     r: float = float('inf')
   41:     ri: Union[

INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 4.264s
INFO: Final Memory: 13M/661M
INFO: ------------------------------------------------------------------------
8
radon
radon engine documentation
View output
Running radon3...
9
bandit
bandit engine documentation
View output
[main]	INFO	profile include tests: None
[main]	INFO	profile exclude tests: None
[main]	INFO	cli include tests: None
[main]	INFO	cli exclude tests: None
180 [0.. [node_visitor]	INFO	Unable to find qualified name for module: setup.py
50.. 100.. 150.. ]