n2j.trainval_data.graphs.cosmodc2_graph
#
Training input graph X created from the postprocessed CosmoDC2 catalog
Module Contents#
Classes#
Concatenation of multiple CosmoDC2GraphHealpix instances, |
|
Set of graphs representing a single healpix of the CosmoDC2 field |
- class n2j.trainval_data.graphs.cosmodc2_graph.CosmoDC2Graph(in_dir, healpixes, raytracing_out_dirs, aperture_size, n_data, features, subsample_pdf_func=None, n_subsample=None, subsample_with_replacement=True, stop_mean_std_early=False, n_cores=20, num_workers=4, out_dir=None, seed=123)[source]#
Bases:
torch.utils.data.dataset.ConcatDataset
Concatenation of multiple CosmoDC2GraphHealpix instances, with an added data transformation functionality
- class n2j.trainval_data.graphs.cosmodc2_graph.CosmoDC2GraphHealpix(healpix, in_dir, raytracing_out_dir, aperture_size, n_data, features, n_cores=20, out_dir=None, debug=False)[source]#
Bases:
n2j.trainval_data.graphs.base_graph.BaseGraph
Set of graphs representing a single healpix of the CosmoDC2 field
- property processed_file_names[source]#
A list of files relative to self.processed_dir which needs to be found in order to skip the processing
- get_los_node()[source]#
Properties of the sightline galaxy, with unobservable features (everything other than position) appropriately masked out.
Parameters#
ra_los : ra of sightline, in arcmin dec_los : dec of sightline, in arcmin
- get_gals_iterator(healpix, columns, chunksize=100000)[source]#
Get an iterator over the galaxy catalog defining the line-of-sight galaxies