• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SPF-OST / pytrnsys_gui / 11662562960

29 Oct 2024 03:09PM UTC coverage: 67.508% (-0.08%) from 67.591%
11662562960

push

github

web-flow
Merge pull request #564 from SPF-OST/560-black-change-line-length-to-pep8-standard-of-79-and-check-ci-reaction

changed line length in black to 79

1054 of 1475 new or added lines in 174 files covered. (71.46%)

150 existing lines in 74 files now uncovered.

10399 of 15404 relevant lines covered (67.51%)

0.68 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

20.83
/trnsysGUI/ProcessMain.py
1
# pylint: skip-file
2
# type: ignore
3

4
import os
1✔
5

6
import pytrnsys.psim.processParallelTrnsys as _ppt
1✔
7

8
import pytrnsys.utils.result as _res
1✔
9

10

11
class ProcessMain:
1✔
12
    def processAction(self, logger, path) -> _res.Result[None]:
1✔
13
        pathConfig = path
×
14
        configFile = "process.config"
×
15
        processTool = _ppt.ProcessParallelTrnsys()
×
16

17
        fullPath = os.path.join(path, configFile)
×
18
        logger.info("Starting ProcessParallelTrnsys with " + fullPath)
×
19

20
        try:
×
21
            processTool.readConfig(pathConfig, configFile)
×
22
        except Exception as e:
×
NEW
23
            return _res.Error(
×
24
                f"An error occurred reading the file {configFile} at {pathConfig}: {e}"
25
            )
26
        except:
×
NEW
27
            return _res.Error(
×
28
                f"An undefined error occurred reading the file {configFile} at {pathConfig}."
29
            )
30

31
        try:
×
32
            processTool.process()
×
NEW
33
            logger.info(
×
34
                "Successfully executed ProcessParallelTrnsys with %s", fullPath
35
            )
36
            return None
×
37
        except Exception as e:
×
NEW
38
            return _res.Error(
×
39
                f"An error occurred processing the file {configFile} at {pathConfig}: {e}"
40
            )
41
        except:
×
NEW
42
            return _res.Error(
×
43
                f"An undefined error occurred processing the file {configFile} at {pathConfig}."
44
            )
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc