Skip to content

Unable to run examples #86

@gvdsteene

Description

@gvdsteene

Unable to run simple examples after installation under python 3.13
The error message is:

Traceback (most recent call last):
File "", line 1, in
s = Star(starname, ra, dec, g_id=gaia_id, dustmap='Bayestar')
File "/opt/anaconda3/envs/sed_ariadne/lib/python3.13/site-packages/astroARIADNE/star.py", line 290, in init
wave, flux, flux_er, bandpass = extract_info(
~~~~~~~~~~~~^
self.mags, self.mag_errs, self.filter_names)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
/opt/anaconda3/envs/sed_ariadne/lib/python3.13/site-packages/astroARIADNE/phot_utils.py", line 25, in extract_info
leff = get_effective_wavelength(band)
File "/opt/anaconda3/envs/sed_ariadne/lib/python3.13/site-packages/astroARIADNE/phot_utils.py", line 115, in get_effective_wavelength
leff = filt.cl.to('um').magnitude
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "
/opt/anaconda3/envs/sed_ariadne/lib/python3.13/site-packages/astropy/units/quantity.py", line 1085, in getattr
raise AttributeError(
f"'{self.class.name}' object has no '{attr}' member"
)
AttributeError: 'Quantity' object has no 'magnitude' member

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions