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

aiidateam / aiida_core / 5703 / 7
74%
develop: 74%

Build:
DEFAULT BRANCH: develop
Ran 05 Apr 2019 10:52AM UTC
Files 392
Run time 20s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Apr 2019 10:29AM UTC coverage: 64.264% (+0.03%) from 64.237%
TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests"

push

travis-ci

sphuber
Implement a generic `ProcessNode.get_builder_restart`

This new method will be able to return an instance of the `ProcessBuilder`
class that is already configured to run the same process that created
the process node on which it is called. It also prepopulates the builder
with the inputs of the process node. This makes it trivial to relaunch a
process with slightly different inputs starting from the original node.

To facilitate this functionality, the `ProcessBuilderNamespace` has been
changed from a normal `Mapping` to a `MutableMapping`. This does block
certain mapping methods, e.g. `values()` and `items()` if those also
happen to be the names of ports in the process specification but if the
port value setters had to be namespaced, e.g. `inputs`, the use of
namespaced ports would become very ugly:

  `builder.inputs.name.inputs.space.inputs.value = 1

instead of

  `builder.name.space.value = 1`

Instead, now one can simply cast a builder to a dict and all the mapping
methods will be once again available:

  `dict(builder).values()`

The `update` method is very important for the `get_builder_restart` and
so it has been implemented as `_update` in order to not block a process
from having a port with the name `update`.

Finally, the ad-hoc implementation of `CalcJobNode.get_builder_restart`
has been simplified by calling the parent and then simply setting the
options in the metadata namespace.

21308 of 33157 relevant lines covered (64.26%)

0.64 hits per line

Source Files on job 5703.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests")
  • Tree
  • List 0
  • Changed 10
  • Source Changed 8
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1442
  • Travis Job 5703.7
  • 70a4cbc1 on github
  • Prev Job for TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests" on develop (#5698.7)
  • Next Job for TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests" on develop (#5705.7)
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