Commit 2dd1f007 authored by Fang Yuedong's avatar Fang Yuedong
Browse files

deep copy qso param dict to avoid mag_use_normal overwritting

parent 108c26c3
import os
import galsim
import random
import copy
import numpy as np
import h5py as h5
import healpy as hp
......@@ -290,10 +291,11 @@ class Catalog(CatalogBase):
param['agnsed_file'] = ""
obj = Galaxy(param, logger=self.logger)
else:
param['star'] = 2 # Quasar
param['agnsed_file'] = agnsed_file
param_qso = copy.deepcopy(param)
param_qso['star'] = 2 # Quasar
param_qso['agnsed_file'] = agnsed_file
# First add QSO model
obj = Quasar(param, logger=self.logger)
obj = Quasar(param_qso, logger=self.logger)
# Need to deal with additional output columns
obj.additional_output_str = self.add_fmt%("n", 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0., 0.,
0, 0.)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment