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

aiidateam / aiida_core / 4940
70%
develop: 74%

Build:
Build:
LAST BUILD BRANCH: fix_3032_doc_working_importexport
DEFAULT BRANCH: develop
Ran 19 Jan 2019 07:57AM UTC
Jobs 4
Files 394
Run time 11min
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
4940

push

travis-ci

giovannipizzi
Further simplification of node type string definition and loading (#2401)

With the recent introduction of the `CalcJob` process, which now ensures
that also for job calculations, it is the `CalcJobNode` that gets stored
in the database, which has a type string just like all the other node
types. This made a lot of the old logic `aiida.plugins.loader` to
determine the correct `type` string for a `Node` (sub) class obsolete as
now all node classes (except Data) are per definition internal to `aiida-core` and
have a type string that is based directly on their module path.

The few functions that remain, `get_type_string_from_class` that formats
the correct type string for a given `Node` class and the
`load_node_class` which can reload that class from the string have been
moved to `aiida.orm.utils.node` since it has no longer anything to do
with a "plugin".

Finally, by moving the `WorkflowNode`, `CalculationNode` and
`ProcessNode` classes in the `__init__` files of their respective
modules allows us to add further simplification to `load_node_class` as
well as making all these classes and their subclasses importable from
the `aiida.orm.node` module. Eventually, when `aiida.orm.data` is also
moved there, all classes can even be exposed directly on `aiida.orm` and
that is the deepest a user should ever go for they should need or be
allowed to import.

24026 of 34503 relevant lines covered (69.63%)

2.51 hits per line

Jobs
ID Job ID Ran Files Coverage
5 4940.5 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 19 Jan 2019 07:57AM UTC 0
63.36
Travis Job 4940.5
6 4940.6 (TEST_AIIDA_BACKEND=django TEST_TYPE="tests") 19 Jan 2019 08:04AM UTC 0
63.3
Travis Job 4940.6
7 4940.7 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 19 Jan 2019 08:04AM UTC 0
62.07
Travis Job 4940.7
8 4940.8 (TEST_AIIDA_BACKEND=sqlalchemy TEST_TYPE="tests") 19 Jan 2019 08:08AM UTC 0
62.01
Travis Job 4940.8
Source Files on build 4940
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #4940
  • be717b63 on github
  • Prev Build on provenance_redesign (#4928)
  • Next Build on provenance_redesign (#4944)
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