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

aiidateam / aiida_core / 4921
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 17 Jan 2019 03:00PM UTC
Jobs 4
Files 397
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
4921

push

travis-ci

web-flow
 Implement `CalcJob` process class  (#2389)

This commit can be summarized in three steps:

 * Reimplementation of a job calculation as `Process` called `CalcJob`
 * Changing job calculation to be purely informational
 * Remove the old job calculation mechanics and business logic

* Reimplementation of a job calculation as `Process` called `CalcJob`

The old way of creating a job calculation, was to subclass the
`JobCalculation` class and override the `_use_methods` class method to
define the input nodes and the `_prepare_for_submission` to setup the
input files for the calculation. The problem was that these methods were
implemented on the `Node` class, thus mixing the responsabilities of
running and introspecting the results of a completed calculation.

Here we define the `CalcJob` class, a subclass of `Process`. This class
replaces the old `JobCalculation` and allows a user to defined the
inputs and outputs through the `ProcessSpec`, just as they would do for
a `WorkChain`. Except, instead of defining an `outline`, one should
implement the `prepare_for_submission`, which fulfills the exact same
function as before, only it is now a public method of the `CalcJob`
process class.

* Changing job calculation to be purely informational

Finally, the role of the job calculation state, stored as an attribute
with the key `state` on the `CalcJobNode` has changed significantly.
The original job calculations had a calculation state that controlled
the logic during its lifetime. This was already superceded a long time
ago by the process wrapper that now fully governs the progression of the
calculation. Despite the calculation state no longer being authoritative
during the calculation's lifetime, it was still present. Here we finally
fully remove and only leave a stripped down version. The remaining state
is stored as an attribute and is a sub state while the `CalcJob` process
is in an active state and serves as a more granual ... (continued)

23952 of 34485 relevant lines covered (69.46%)

2.5 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4921.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 17 Jan 2019 03:00PM UTC 0
63.19
Travis Job 4921.5
6 4921.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 17 Jan 2019 03:06PM UTC 0
63.13
Travis Job 4921.6
7 4921.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 17 Jan 2019 03:07PM UTC 0
61.92
Travis Job 4921.7
8 4921.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 17 Jan 2019 03:09PM UTC 0
61.86
Travis Job 4921.8
Source Files on build 4921
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4921
  • 2c961cbb on github
  • Prev Build on provenance_redesign (#4916)
  • Next Build on provenance_redesign (#4926)
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

© 2025 Coveralls, Inc