de_twin.specimen.SpecimenConfig#

class de_twin.specimen.SpecimenConfig(seed=42, holder='mesh_grid', preparation='nanoparticles', film='auto', options=<factory>, name='')[source]#

Bases: object

What to build: seed, holder, preparation, support film and option overrides.

Parameters:
__init__(seed=42, holder='mesh_grid', preparation='nanoparticles', film='auto', options=<factory>, name='')#
Parameters:
Return type:

None

Methods

__init__([seed, holder, preparation, film, ...])

copy()

resolved_film()

The film after resolving 'auto' to the pattern's default film (C++ defaultFilm).

resolved_options()

with_options(**changes)

Attributes

seed: int = 42#
holder: str = 'mesh_grid'#
preparation: str = 'nanoparticles'#
film: str = 'auto'#
options: dict#
name: str = ''#
resolved_options()[source]#
Return type:

SpecimenOptions

resolved_film()[source]#

The film after resolving ‘auto’ to the pattern’s default film (C++ defaultFilm).

Return type:

str

with_options(**changes)[source]#
Return type:

SpecimenConfig

copy()[source]#
Return type:

SpecimenConfig