Skip to content

Commit

Permalink
Fix W009
Browse files Browse the repository at this point in the history
  • Loading branch information
addman2 committed Nov 7, 2023
1 parent 0f99625 commit b615a1a
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This package is an AiiDA plugin allowing you to run python code as `CalcJob` on
```from aiida.orm import (Int, Float, Str, List, ArrayData)
from aiida.plugins import CalculationFactory
CalcJobPython = CalculationFactory("aiida_python.calc")
CalcJobPython = CalculationFactory("python.calc")
class ClassThatCannotStartWithTestExample(CalcJobPython):
Expand Down
2 changes: 1 addition & 1 deletion aiida_python/calc.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def define(cls, spec):
help='Dont leave this empty')

spec.inputs['metadata']['options'][
'parser_name'].default = 'aiida-python.parser'
'parser_name'].default = 'python.parser'
spec.inputs['metadata']['options'][
'input_filename'].default = '__noone_will_ever_use_this_name.input'
spec.inputs['metadata']['options'][
Expand Down
6 changes: 3 additions & 3 deletions example/example_diagonalization.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest
import numpy as np

CalcJobPython = CalculationFactory('aiida-python.calc')
CalcJobPython = CalculationFactory('python.calc')


class ClassThatCannotStartWithTestLastTime(CalcJobPython):
Expand Down Expand Up @@ -87,11 +87,11 @@ def test_diagonalize_hamiltonian(aiida_local_code_factory, clear_database):
# Add entry point

entry_points.add(group='aiida.calculations',
name='aiida-python.example.calc_diag',
name='python.example.calc_diag',
value=ClassThatCannotStartWithTestLastTime)

executable = 'python3'
entry_point = 'aiida-python.example.calc_diag'
entry_point = 'python.example.calc_diag'

code = aiida_local_code_factory(entry_point=entry_point,
executable=executable)
Expand Down
2 changes: 1 addition & 1 deletion example/gol/goleval.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
DataFactory,
)

CalcJobPython = CalculationFactory('aiida-python.calc')
CalcJobPython = CalculationFactory('python.calc')


class GOLEval(CalcJobPython):
Expand Down
4 changes: 2 additions & 2 deletions setup.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
"version": "0.0.6",
"entry_points": {
"aiida.calculations": [
"aiida-python.calc = aiida_python.calc:CalcJobPython"
"python.calc = aiida_python.calc:CalcJobPython"
],
"aiida.parsers": [
"aiida-python.parser = aiida_python.parser:ParserPython"
"python.parser = aiida_python.parser:ParserPython"
],
"aiida_python.serializers": [
"int = aiida_python.serializers:SerializerInt",
Expand Down
2 changes: 1 addition & 1 deletion tests/test_copyfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aiida.plugins import CalculationFactory
import pytest

CalcJobPython = CalculationFactory('aiida-python.calc')
CalcJobPython = CalculationFactory('python.calc')

SUCCESS_MSG = 'Succesfull run'

Expand Down
2 changes: 1 addition & 1 deletion tests/test_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from aiida.plugins import CalculationFactory
import pytest

CalcJobPython = CalculationFactory('aiida-python.calc')
CalcJobPython = CalculationFactory('python.calc')


class ClassThatCannotStartWithTestExample(CalcJobPython):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from aiida.orm import (Int, Float, Str, List, ArrayData)
from aiida.plugins import CalculationFactory

CalcJobPython = CalculationFactory('aiida-python.calc')
CalcJobPython = CalculationFactory('python.calc')


class ClassThatCannotStartWithTestException(CalcJobPython):
Expand Down
2 changes: 1 addition & 1 deletion tests/test_simple_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from aiida.orm import (Int, Float, Str, List, ArrayData)
from aiida.plugins import CalculationFactory

CalcJobPython = CalculationFactory('aiida-python.calc')
CalcJobPython = CalculationFactory('python.calc')


class ClassThatCannotStartWithTestInt(CalcJobPython):
Expand Down

0 comments on commit b615a1a

Please sign in to comment.