Pylint report from report.jinja2

Score

6.68 / 10 (previous score: 6.68 / 10)

Messages

Module ebcpy.data_types (ebcpy/data_types.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/data_types.py: Fatal error while checking 'ebcpy/data_types.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-19.txt'.
564 0 convention line-too-long C0301
Line too long (112/100)
602 0 convention line-too-long C0301
Line too long (112/100)
696 0 convention line-too-long C0301
Line too long (118/100)

Module ebcpy.modelica.__init__ (ebcpy/modelica/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/modelica/__init__.py: Fatal error while checking 'ebcpy/modelica/__init__.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-20.txt'.

Module ebcpy.modelica.manipulate_ds (ebcpy/modelica/manipulate_ds.py)

Line Col. Type Symbol ID Obj Message
7 0 error import-error E0401
Unable to import 'pandas'
10 0 refactor too-many-locals R0914 convert_ds_file_to_dataframe
Too many local variables (17/15)
43 9 warning unspecified-encoding W1514 convert_ds_file_to_dataframe
Using open without explicitly specifying an encoding
116 24 convention consider-using-f-string C0209 eliminate_parameters_from_ds_file
Formatting a regular string which could be a f-string
132 24 convention consider-using-f-string C0209 eliminate_parameters_from_ds_file
Formatting a regular string which could be a f-string
134 27 convention consider-using-f-string C0209 eliminate_parameters_from_ds_file
Formatting a regular string which could be a f-string
143 9 warning unspecified-encoding W1514 eliminate_parameters_from_ds_file
Using open without explicitly specifying an encoding
149 9 warning unspecified-encoding W1514 eliminate_parameters_from_ds_file
Using open without explicitly specifying an encoding

Module ebcpy.modelica.simres (ebcpy/modelica/simres.py)

Line Col. Type Symbol ID Obj Message
22 0 convention line-too-long C0301
Line too long (106/100)
55 0 error import-error E0401
Unable to import 'scipy.io'
56 0 error import-error E0401
Unable to import 'pandas'
57 0 error import-error E0401
Unable to import 'numpy'
65 0 refactor too-many-locals R0914 loadsim
Too many local variables (16/15)
123 17 convention consider-using-f-string C0209 loadsim
Formatting a regular string which could be a f-string
154 20 refactor use-dict-literal R1735 loadsim
Consider using '{}' instead of a call to 'dict'.
157 28 convention consider-using-f-string C0209 loadsim
Formatting a regular string which could be a f-string
158 28 convention consider-using-f-string C0209 loadsim
Formatting a regular string which could be a f-string
254 0 refactor too-many-locals R0914 mat_to_pandas
Too many local variables (16/15)
254 0 refactor too-many-branches R0912 mat_to_pandas
Too many branches (15/12)
345 8 warning raise-missing-from W0707 mat_to_pandas
Consider explicitly re-raising using 'except KeyError as exc' and 'raise KeyError(f'Time column {time_key} not found in the data dictionary.') from exc'

Module ebcpy.optimization (ebcpy/optimization.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/optimization.py: Fatal error while checking 'ebcpy/optimization.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-19.txt'.
5 0 convention ungrouped-imports C0412
Imports from package os are not grouped
6 0 convention ungrouped-imports C0412
Imports from package pathlib are not grouped
7 0 convention ungrouped-imports C0412
Imports from package warnings are not grouped
50 0 convention line-too-long C0301
Line too long (111/100)
58 0 convention line-too-long C0301
Line too long (106/100)
150 0 convention line-too-long C0301
Line too long (115/100)
151 0 convention line-too-long C0301
Line too long (143/100)
355 0 convention line-too-long C0301
Line too long (103/100)
356 0 convention line-too-long C0301
Line too long (109/100)
558 0 convention line-too-long C0301
Line too long (107/100)
602 0 convention line-too-long C0301
Line too long (114/100)
603 0 convention line-too-long C0301
Line too long (106/100)

Module ebcpy.preprocessing (ebcpy/preprocessing.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/preprocessing.py: Fatal error while checking 'ebcpy/preprocessing.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-20.txt'.

Module ebcpy.simulationapi.__init__ (ebcpy/simulationapi/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/simulationapi/__init__.py: Fatal error while checking 'ebcpy/simulationapi/__init__.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-21.txt'.
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==ebcpy.simulationapi.dymola_api:[1121:1132]
==ebcpy.simulationapi.fmu:[408:415]
                ))

        return super().save_for_reproduction(
            title=title,
            path=path,
            files=files,
            **kwargs
        )

    def _save_to_fmu(self, fail_on_error):
        """Save model as an FMU"""
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==ebcpy.simulationapi.dymola_api:[427:435]
==ebcpy.simulationapi.fmu:[199:206]
        if kwargs:
            self.logger.error(
                "You passed the following kwargs which "
                "are not part of the supported kwargs and "
                "have thus no effect: %s.", " ,".join(list(kwargs.keys())))

        # Handle multiprocessing
        if self.use_mp:
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==ebcpy.optimization:[106:119]
==ebcpy.simulationapi.__init__:[524:536]
        return self._working_directory

    @working_directory.setter
    def working_directory(self, working_directory: Union[Path, str]):
        """Set the current working directory"""
        if isinstance(working_directory, str):
            working_directory = Path(working_directory)
        os.makedirs(working_directory, exist_ok=True)
        self._working_directory = working_directory

    def set_cd(self, cd: Union[Path, str]):
        warnings.warn("cd was renamed to working_directory in all classes. "
1 0 refactor duplicate-code R0801
Similar lines in 2 files
==ebcpy.simulationapi.dymola_api:[323:332]
==ebcpy.simulationapi.fmu:[199:205]
        if kwargs:
            self.logger.error(
                "You passed the following kwargs which "
                "are not part of the supported kwargs and "
                "have thus no effect: %s.", " ,".join(list(kwargs.keys())))
442 0 convention line-too-long C0301
Line too long (111/100)
585 0 convention line-too-long C0301
Line too long (104/100)

Module ebcpy.simulationapi.dymola_api (ebcpy/simulationapi/dymola_api.py)

Line Col. Type Symbol ID Obj Message
1 0 convention too-many-lines C0302
Too many lines in module (1427/1000)
1 0 fatal astroid-error F0002
ebcpy/simulationapi/dymola_api.py: Fatal error while checking 'ebcpy/simulationapi/dymola_api.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-21.txt'.
363 0 convention line-too-long C0301
Line too long (101/100)
383 0 convention line-too-long C0301
Line too long (102/100)
412 0 convention line-too-long C0301
Line too long (107/100)
623 0 convention line-too-long C0301
Line too long (103/100)
646 0 convention line-too-long C0301
Line too long (101/100)
901 0 convention line-too-long C0301
Line too long (110/100)
916 0 convention line-too-long C0301
Line too long (106/100)
942 0 convention line-too-long C0301
Line too long (105/100)
1070 0 convention line-too-long C0301
Line too long (118/100)
1079 0 convention line-too-long C0301
Line too long (107/100)
1085 0 convention line-too-long C0301
Line too long (110/100)
1088 0 convention line-too-long C0301
Line too long (110/100)
1185 0 convention line-too-long C0301
Line too long (103/100)
1380 0 convention line-too-long C0301
Line too long (104/100)
1381 0 convention line-too-long C0301
Line too long (102/100)

Module ebcpy.simulationapi.fmu (ebcpy/simulationapi/fmu.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/simulationapi/fmu.py: Fatal error while checking 'ebcpy/simulationapi/fmu.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-21.txt'.
82 0 convention line-too-long C0301
Line too long (107/100)
296 0 convention line-too-long C0301
Line too long (119/100)
357 0 convention line-too-long C0301
Line too long (108/100)

Module ebcpy.utils.__init__ (ebcpy/utils/__init__.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/utils/__init__.py: Fatal error while checking 'ebcpy/utils/__init__.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-20.txt'.

Module ebcpy.utils.conversion (ebcpy/utils/conversion.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/utils/conversion.py: Fatal error while checking 'ebcpy/utils/conversion.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-20.txt'.
5 0 convention ungrouped-imports C0412
Imports from package pathlib are not grouped

Module ebcpy.utils.reproduction (ebcpy/utils/reproduction.py)

Line Col. Type Symbol ID Obj Message
1 0 fatal astroid-error F0002
ebcpy/utils/reproduction.py: Fatal error while checking 'ebcpy/utils/reproduction.py'. Please open an issue in our bug tracker so we address this. There is a pre-filled template that you can use in '/home/runner/.cache/pylint/pylint-crash-2026-04-20-13-02-18.txt'.

Module ebcpy.utils.statistics_analyzer (ebcpy/utils/statistics_analyzer.py)

Line Col. Type Symbol ID Obj Message
4 0 error import-error E0401
Unable to import 'numpy'
5 0 error import-error E0401
Unable to import 'sklearn.metrics'
189 0 convention trailing-whitespace C0303
Trailing whitespace
203 0 convention trailing-whitespace C0303
Trailing whitespace
206 0 convention trailing-whitespace C0303
Trailing whitespace

Metrics

Count per types

Name Count
fatal 10
convention 47
error 6
refactor 9
warning 4

Count per messages

Name Count
astroid-error 10
line-too-long 33
trailing-whitespace 3
import-error 6
ungrouped-imports 4
too-many-locals 3
consider-using-f-string 6
use-dict-literal 1
raise-missing-from 1
too-many-branches 1
unspecified-encoding 3
too-many-lines 1
duplicate-code 4

Count per modules

Name Count
ebcpy.utils.reproduction 1
ebcpy.data_types 4
ebcpy.optimization 13
ebcpy.preprocessing 1
ebcpy.utils.conversion 2
ebcpy.utils.statistics_analyzer 5
ebcpy.utils.__init__ 1
ebcpy.modelica.simres 12
ebcpy.modelica.manipulate_ds 8
ebcpy.modelica.__init__ 1
ebcpy.simulationapi.dymola_api 17
ebcpy.simulationapi.fmu 4
ebcpy.simulationapi.__init__ 7

Count per path

Name Count
ebcpy/utils/reproduction.py 1
ebcpy/data_types.py 4
ebcpy/optimization.py 13
ebcpy/preprocessing.py 1
ebcpy/utils/conversion.py 2
ebcpy/utils/statistics_analyzer.py 5
ebcpy/utils/__init__.py 1
ebcpy/modelica/simres.py 12
ebcpy/modelica/manipulate_ds.py 8
ebcpy/modelica/__init__.py 1
ebcpy/simulationapi/dymola_api.py 17
ebcpy/simulationapi/fmu.py 4
ebcpy/simulationapi/__init__.py 7