Aleph - 0.48.0
๐ Highlightsโ
- Refreshed Aleph's build toolchain and runtime packaging.
- CSV files can now be read, edited, and saved directly from Aleph scripts.
- Editor feedback is more responsive while writing Aleph scripts.
โจ New Featuresโ
- Aleph scripts can now create, read, edit, and save CSV files with
CSVFile. It supports named or indexed rows, columns, and cells; configurable headers, delimiters, quoting, comments, and line endings; and conversion to primitive values, arrays, matrices, sparse matrices, and tensors.
๐ Improvementsโ
- Highlighting and hover information stay current as you edit, even when several files are open or included files are loading.
๐ Fixesโ
- Removed misleading editor warnings for valid range slicing and matrix indexing.
โ๏ธ Internal / Technical Changesโ
โ ๏ธ Breaking Changesโ
CSVDocumenthas been replaced byCSVFile. Constructor options and access methods have been renamed, and changes made through a writableCSVFileremain in memory untilsave()orsave_as()is called.
๐งช Migration Notesโ
-
Replace
CSVDocumentwithCSVFile, pass the file mode before the options map, and remove theget_prefix from access methods. Use type tags such asas_realwhen requesting converted values:# Beforevar values = CSVDocument("data.csv", ["label_row_index": 0]).get_column("value", real)# Nowvar values = CSVFile("data.csv", "r", ["row_header_column": 0]).column("value", as_real)Rename CSV options as follows:
Previous option CSVFileoptionlabel_column_indexcolumn_header_rowlabel_row_indexrow_header_columnseparatordelimiterquoted_linebreaksallow_quoted_line_breaksquote_charquote_characterThe
trim,auto_quote,skip_comment_lines,comment_prefix, andskip_empty_linesnames are unchanged. Options are fixed when the file is opened.Use
column,row, andcellinstead of the formerget_column,get_row, andget_cellmethods. Writable files also provideset_*,insert_*, andremove_*methods. Callsave()to persist changes to the current workspace path, orsave_as(path)to write them to another path.