I’m trying to use CatSim, but I’m having an across the board failure to find any of the modules in the sample scripts.
I’m using the code samples as a guide that are located here: https://confluence.lsstcorp.org/display/SIM/Framework+Overview+--+Catalog+Simulations
However, in trying to run any of that code, I’m receiving errors on trying to import all the LSST modules. Since I’m not sure where the issue is, I’m outlining fully how I’m trying to run this.
I’ve started with this, as per the instructions on the setup and installation page
source loadLSST.bash
setup sims_catUtils -t sims
However, I’ve then tried to import each of the modules used on that page, and these are the results I’m getting:
File “WDcat.py”, line 1, in
from lsst.sims.catalogs.generation.db import CatalogDBObject
ModuleNotFoundError: No module named ‘lsst.sims.catalogs.generation’
File "WDcat.py", line 1, in <module>
from lsst.sims.photUtils.Photometry import PhotometryStars
ModuleNotFoundError: No module named 'lsst.sims.photUtils.Photometry'
Traceback (most recent call last):
File "WDcat.py", line 1, in <module>
from lsst.sims.catalogs.catUtils.baseCatalogModels import *
ModuleNotFoundError: No module named 'lsst.sims.catalogs.catUtils'
Traceback (most recent call last):
File "WDcat.py", line 1, in <module>
from lsst.sims.catalogs.measures.instance import InstanceCatalog
ModuleNotFoundError: No module named 'lsst.sims.catalogs.measures'
I’ve previously worked with MAF with no similar problems, although I’ve tried to dig around to locate where these modules are, and I’ve been unsuccessful. So, for example, to find ‘lsst.sims.catalogs.generation’, lsst.sims.catalogs.generation, I’ve tried running locate catalogs | grep measures and I don’t return anything, so I at least don’t have a file that has both catalogs and measures in the path, which is what I would expect given the explanation of the code here: https://confluence.lsstcorp.org/display/SIM/Code+Overview+--+Catalog+Simulations
This makes me think that just doing the normal install doesn’t install all the modules needed to run CatSim, but there’s no mention of this on the install page that CatSim needs additional files installed from elsewhere.