-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ | |
# You should have received a copy of the GNU General Public License | ||
# along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
|
||
import eups | ||
import numpy as np | ||
from scipy.ndimage.filters import gaussian_filter | ||
import lsst.afw.detection as afwDetect | ||
|
@@ -292,3 +293,19 @@ def makeQuery(dataId): | |
spectractionQuantum = quanta[3] | ||
result = butler.get(spectractionQuantum.outputs['spectraction'][0]) | ||
return result | ||
|
||
|
||
def checkStackSetup(): | ||
ep = eups.Eups() | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
mfisherlevine
Author
Contributor
|
||
for tag in ep.findSetupProduct("lsst_distrib").tags: | ||
if tag != "current": | ||
print(f"You are running {tag} of lsst_distrib") | ||
|
||
products = ep.findProducts(version='LOCAL:*', tags='setup') | ||
if products: | ||
print("\nLocally setup packages:") | ||
print("-----------------------") | ||
for product in products: | ||
print(f"{product.name} setup at {product.dir}") | ||
else: | ||
print("\nNo packages are setup locally.") |
We try very hard not to depend on eups in any of our code.
The public API we have for this is
lsst.utils.packages
.