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

aiidateam / aiida_core / 5703
74%

Build:
DEFAULT BRANCH: develop
Ran 05 Apr 2019 10:43AM UTC
Jobs 4
Files 392
Run time 10min
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

pending completion
5703

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.

23368 of 33155 relevant lines covered (70.48%)

2.58 hits per line

Jobs
ID Job ID Ran Files Coverage
5 5703.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 05 Apr 2019 10:43AM UTC 0
64.6
Travis Job 5703.5
6 5703.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 05 Apr 2019 10:50AM UTC 0
64.51
Travis Job 5703.6
7 5703.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 05 Apr 2019 10:52AM UTC 0
64.26
Travis Job 5703.7
8 5703.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 05 Apr 2019 10:53AM UTC 0
64.17
Travis Job 5703.8
Source Files on build 5703
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5703
  • 70a4cbc1 on github
  • Prev Build on develop (#5698)
  • Next Build on develop (#5705)
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