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

CCPBioSim / CodeEntropy / 13726590978

07 Mar 2025 06:07PM UTC coverage: 1.726%. First build
13726590978

push

github

web-flow
Merge pull request #45 from CCPBioSim/39-implement-ci-pipeline-pre-commit-hooks

Implement CI pipeline pre-commit hooks

27 of 1135 new or added lines in 23 files covered. (2.38%)

53 of 3071 relevant lines covered (1.73%)

0.05 hits per line

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

0.0
/CodeEntropy/poseidon/analysis/helper.py
1
import os
×
2

NEW
3
import psutil
×
4

5

6
def memoryInfo(verbosePrint):
×
7
    """
8
    Prints the current process's memory usage in gigabytes.
9

10
    Args:
11
        verbosePrint (bool): This parameter is unused in the function.
12

13
    Returns:
14
        None
15
    """
16
    process = psutil.Process(os.getpid())
×
17
    bytes_info = float(process.memory_info().rss)
×
18
    gb = bytes_info * 1e-9
×
NEW
19
    print("memory use:", round(gb, 3), "GB")  # in gbytes
×
20

21

22
def weightingPopulation(weighting):
×
23
    """
24
    Save a list of weightings per frame from biased simulations in the
25
    EEclass
26
    """
27
    dataFile = weighting[0]
×
28
    try:
×
29
        frame_chunks = weighting[1]
×
30
    except IndexError:
×
31
        frame_chunks = 1
×
32
    weighting_list = []
×
33
    with open(dataFile) as data:
×
34
        for line in data:
×
35
            weighting_list.append(line)
×
36
    data.close()
×
37

38
    weighting_info = [weighting_list, frame_chunks]
×
39

40
    return weighting_info
×
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