autolens.galaxy_table_from_csv#
- galaxy_table_from_csv(file_path)[source]#
Load a galaxy population from a CSV with columns
y, x, luminosity, redshift?.The
redshiftcolumn is optional. If every row in the file populates it, the values are loaded intoGalaxyTable.redshifts; if the column is absent or every row leaves it blank,GalaxyTable.redshiftsisNone. Partial population (some rows have a redshift, others do not) is rejected withValueError— the partial-population convention mirrorsautolens.point.dataset.list_from_csv.Additional columns are loaded into
GalaxyTable.propertieskeyed by column name — numeric columns as per-galaxy floats, non-numeric ones (names, notes) as strings. Nothing is silently dropped. Row order is preserved.