Skip to content

Commit

Permalink
Merge pull request #13 from altor/0.4.2
Browse files Browse the repository at this point in the history
0.4.2
  • Loading branch information
altor authored Oct 4, 2019
2 parents 6fab3a5 + e331e1d commit d1c8ea8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM powerapi/powerapi:0.6
FROM powerapi/powerapi:0.6.7

WORKDIR /opt/rapl_formula
USER powerapi
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ Use RAPL data collected with the
power consumption measures (in Watt). The power consumption measures are store
in a MongoDB database.

# Usage
# Quick start

We detail here how to quickly start rapl-formula and connect it to a hwpc-sensor
using a mongoDB instance.

For more detail see our documentation [here](http://powerapi.org)

## Get input data

Expand Down
2 changes: 1 addition & 1 deletion rapl_formula/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
"""

__version__ = "0.4.1"
__version__ = "0.4.2"
8 changes: 5 additions & 3 deletions rapl_formula/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
from powerapi.filter import Filter
from powerapi.report import HWPCReport
from powerapi.dispatcher import DispatcherActor, RouteTable
from powerapi.cli.tools import generate_pullers, generate_pushers
from powerapi.cli.tools import PullerGenerator, PusherGenerator

from rapl_formula.rapl_formula_actor import RAPLFormulaActor

Expand All @@ -54,7 +54,8 @@ class BadActorInitializationError(Exception):
def launch_powerapi(config, logger):

# Pusher
pushers = generate_pushers(config)
pusher_generator = PusherGenerator()
pushers = pusher_generator.generate(config)

# Formula
formula_factory = (lambda name, verbose:
Expand All @@ -71,7 +72,8 @@ def launch_powerapi(config, logger):
# Puller
report_filter = Filter()
report_filter.filter(lambda msg: True, dispatcher)
pullers = generate_pullers(config, report_filter)
puller_generator = PullerGenerator(report_filter)
pullers = puller_generator.generate(config)

# Setup signal handler
def term_handler(_, __):
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test_suite = tests
setup_requires =
pytest-runner >=3.9.2
install_requires =
powerapi == 0.6.*
powerapi >= 0.6.7
tests_require =
pytest >=3.9.2
mock >=2.0
Expand Down

0 comments on commit d1c8ea8

Please sign in to comment.