I’m trying to generate a StellarDensityMap (with the goal of getting a map for white dwarfs, specifically), however I’m getting an error in the process. I’m not sure if the example code I’m trying to run is outdated, or something else wrong with this.
I’m using the StellarDensityMap code here as a guide: https://github.com/LSST-nonproject/sims_maf_contrib/blob/master/science/static/StellarDensityMap.ipynb
However, I’m getting an error when it runs, and I’ve not had any luck resolving it:
ERROR: AttributeError: type object 'StellarDensityMap' has no attribute '_MetricBundle__name' [lsst.sims.maf.metricBundles.metricBundle]
Traceback (most recent call last):
File "runWD.py", line 21, in <module>
bundle = metricBundles.MetricBundle(metric,slicer,sql, mapsList=[mafMap], plotDict=plotDict)
File "/home/mike/lsst/stack/miniconda3-4.3.21-10a4fa6/Linux64/sims_maf/2.4.0.sims+1/python/lsst/sims/maf/metricBundles/metricBundle.py", line 94, in __init__
mapNames = [map.__class__.__name for map in self.mapsList]
File "/home/mike/lsst/stack/miniconda3-4.3.21-10a4fa6/Linux64/sims_maf/2.4.0.sims+1/python/lsst/sims/maf/metricBundles/metricBundle.py", line 94, in <listcomp>
mapNames = [map.__class__.__name for map in self.mapsList]
AttributeError: type object 'StellarDensityMap' has no attribute '_MetricBundle__name'
The one thing I tried is that there were some issues mentioned with the Star Maps in this conversation:
I’ve tried changing those filenames and that doesn’t matter, so that rules that out. I’m not sure if the code I’m trying to run still works with the current code, or if it’s an installation error. This is a recent install, so in theory everything should be current.
Thanks in advance