-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
I'm running the following code from one of the MARVIN tutorials and keep getting an error:
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from astropy.io import fits
from marvin.tools.cube import Cube
import marvin
from marvin import config
config.switchSasUrl(sasmode='mirror')
import lime
from marvin.tools import Maps
# config.switchSasUrl(sasmode='mirror')
maps = Maps('8485-1901')
# must use Maps.getSpaxel() to get cube and modelcube
spax = maps.getSpaxel(x=17, y=17, xyorig='lower', cube=True, modelcube=True)
# mask out pixels lacking model fit
no_fit = ~spax.full_fit.masked.mask
# extra arguments to plot are passed to the matplotlib routine
ax = spax.flux.plot(label='observed')
ax.plot(spax.full_fit.wavelength[no_fit], spax.full_fit.value[no_fit], label='model')
ax.legend()
Running check_marvin in the command line yields the following:
System Checks
Your Python Version: 3.10.17
Full Version: 3.10.17 | packaged by conda-forge | (main, Apr 10 2025, 22:15:49) [Clang 18.1.8 ]
OS Checks
Platform: darwin
Full info: posix.uname_result(sysname='Darwin', nodename='astr-kgozman-mbp.local', release='23.6.0', version='Darwin Kernel Version 23.6.0: Thu Mar 6 21:58:03 PST 2025; root:xnu-10063.141.1.704.6~1/RELEASE_X86_64', machine='x86_64')
Distribution Checks
Is Python from Anaconda or Miniconda? False
Package Checks
Numpy version: 1.26.4
Matplotlib version: 3.10.1
Your Matplotlib backend is macosx
Netrc Checks
Have a .netrc file? False
Marvin Checks
[WARNING]: path /Users/kgozman/sas/dr17/manga/spectro/analysis/v3_1_1/3.1.0/dapall-v3_1_1-3.1.0.fits cannot be found. Setting dapall to None. (MarvinUserWarning)
Marvin imported? True
Marvin version: 2.8.2
Does Marvin have a URLMap for API use? True
Has a db? False
Marvin Paths:
$SAS_BASE_DIR: /Users/kgozman/sas
$MANGA_SPECTRO_REDUX: /Users/kgozman/sas/dr17/manga/spectro/redux
$MANGA_SPECTRO_ANALYSIS: /Users/kgozman/sas/dr17/manga/spectro/analysis
$TREE_DIR: /Users/kgozman/miniconda3/envs/codenova/lib/python3.10/site-packages/tree
$MARVIN_BRAIN_DIR: None
$SDSS_ACCESS_DIR: None
DRPall Path: /Users/kgozman/sas/dr17/manga/spectro/redux/v3_1_1/drpall-v3_1_1.fits
I already tried the fix in #810 but it did not work for me.
What else can I try? Thanks!!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels