create_from_axis (method)

create_from_axis(axis_in, per, is_aper, is_include_per, is_remove_aper=False)[source]

Create axis input axis accounting for (anti-)periodicity changes imposed by physics and model inputs

Parameters
  • axis_in (Data) – The input axis coming from previous output (a Data object such as Data1D or DataLinspace)

  • per (int) – machine periodicity along current axis

  • is_aper (bool) – True if the machine is anti-periodic along current axis

  • is_include_per (bool) – True if the model requires to include periodicity

  • is_remove_aper (bool) – True if the model requires to remove anti-periodicity

Returns

  • axis_out (Data) – The output axis (a Data object such as Data1D or DataLinspace)

  • is_include_per (bool) – Returns is_include_per in case periodicity is activated in the model but cannot be applied