Skip to content
Release 1.3
-----------

Enhancements
~~~~~~~~~~~~

* New exception types for errors during parsing and building:

  * `dipas.build.UnknownVariableNameError`
  * `dipas.madx.parser.IllegalStatementError`

* Parsing and build errors now include the line number indicating where the error originated
* MADX default values for element attributes are now supported
* New option to define defaults for missing variables during parsing: `dipas.madx.parser.missing_variable_names`
  (`dipas.madx.parser` for details); this is useful for parsing sequences without optics files

Changes
~~~~~~~

* Deleting elements from a segment now replaces them with equivalent drift spaces (the old behavior was to simply
  remove them; the difference matters for non-zero-length elements). In order to completely remove elements, one should
  delete from `segment.elements` instead.