Skip to content
This repository was archived by the owner on Apr 23, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
exclude = doc/*

[build_meta]
repotag=0.5.0
repotag=master
1 change: 1 addition & 0 deletions simphony/core/cuba.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class CUBA(Enum):
CROSS_POWER_LAW_MODEL = "CROSS_POWER_LAW_MODEL"
CRYSTAL_STORAGE = "CRYSTAL_STORAGE"
CUBIC_LATTICE = "CUBIC_LATTICE"
CUDS = "CUDS"
CUDS_COMPONENT = "CUDS_COMPONENT"
CUDS_ITEM = "CUDS_ITEM"
CURRENT = "CURRENT"
Expand Down
7 changes: 7 additions & 0 deletions simphony/core/keywords.py
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,13 @@
shape=[1],
length=None,
dtype=None),
'CUDS': Keyword(
name='CUDS',
definition='CUDS Container', # noqa
key='CUDS',
shape=[1],
length=None,
dtype=None),
'CUDS_COMPONENT': Keyword(
name='CUDSComponent',
definition='Base data type for the CUDS components', # noqa
Expand Down
1 change: 1 addition & 0 deletions simphony/cuds/meta/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
from .coulomb_friction_force import CoulombFrictionForce # noqa
from .cross_power_law_model import CrossPowerLawModel # noqa
from .cubic_lattice import CubicLattice # noqa
from .cuds import CUDS # noqa
from .cuds_component import CUDSComponent # noqa
from .cuds_item import CUDSItem # noqa
from .data_set import DataSet # noqa
Expand Down
26 changes: 26 additions & 0 deletions simphony/cuds/meta/cuds.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
from simphony.core import Default # noqa
from .cuds_component import CUDSComponent
from simphony.core.cuba import CUBA


class CUDS(CUDSComponent):
"""
CUDS Container
"""
cuba_key = CUBA.CUDS

def __init__(self, description=Default, name=Default):

super(CUDS, self).__init__(description=description, name=name)

@classmethod
def supported_parameters(cls):
try:
base_params = super(CUDS, cls).supported_parameters()
except AttributeError:
base_params = ()

return () + base_params

def _default_definition(self):
return "CUDS Container" # noqa