Feature #1715

Core API: start sample construction with SlabSample() or FilmSample()

Added by wuttke almost 4 years ago. Updated 13 days ago.

Status:BacklogStart date:02 Dec 2016
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

The semi-infinite bottom and top layers are special. This should be reflected in the API.

Instead of

    air_layer = ba.Layer(m_ambience)
    substrate_layer = ba.Layer(m_substrate)
    multi_layer = ba.MultiLayer()
    multi_layer.addLayer(air_layer)
    multi_layer.addLayer(substrate_layer)

we could have
    multi_layer = ba.FilmSample(m_ambience, m_substrate)

or simply
    sample = ba.FilmSample(m_ambience, m_substrate)
.
For a SAS sample without substrate, instead of
    air_layer = ba.Layer(m_ambience)
    multi_layer = ba.MultiLayer()
    multi_layer.addLayer(air_layer)

we would have
    sample = ba.SlabSample(m_ambience)


Related issues

Related to BornAgain - Feature #2367: GUI: Sample builder: "Layers" section incorrectly suggests choice between "MultiLayer" and "Layer" Backlog 17 May 2019

History

#1 Updated by pospelov about 3 years ago

  • Status changed from New to Rejected

Rejected, see #1823

#2 Updated by wuttke 13 days ago

  • Subject changed from start sample construction with SlabSample() or FilmSample() to Core API: start sample construction with SlabSample() or FilmSample()

#3 Updated by wuttke 13 days ago

  • Parent task deleted (#1566)

#4 Updated by wuttke 13 days ago

  • Status changed from Rejected to Backlog

To be reconsidered in view of forthcoming SANS applications.

#5 Updated by wuttke 13 days ago

  • Related to Feature #2367: GUI: Sample builder: "Layers" section incorrectly suggests choice between "MultiLayer" and "Layer" added

Also available in: Atom PDF