Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_mask AttributeError #1

Open
Aysegul-Sen opened this issue Aug 4, 2024 · 0 comments
Open

_mask AttributeError #1

Aysegul-Sen opened this issue Aug 4, 2024 · 0 comments

Comments

@Aysegul-Sen
Copy link

Hi, I am triying to use SteParSyn but I am getting an error:

(base) aysegul@aysegul-omen:/SteParSyn-main$ /bin/bash /home/aysegul/SteParSyn-main/runall.sh
Star under analysis: HD*****
Setting initial parameters
Reading Synthetic PCA grid
Reading line ranges
Reading line masks
Reading observed spectrum
Observed spectrum was cut into spectral ranges
Traceback (most recent call last):
File "/home/aysegul/SteParSyn-main/SteParSyn.py", line 583, in
masked_wave_obs,masked_flux_obs,masked_eflux_obs,masked_velo_obs,ranked_velo_obs = mask_flux(wave_obs_rank,flux_obs_rank,eflux_obs_rank)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/aysegul/SteParSyn-main/SteParSyn.py", line 363, in mask_flux
flux_masked = np.append(flux_masked,flux[sel_mask])
~~~~^^^^^^^^^^
File "astropy/table/_column_mixins.pyx", line 94, in astropy.table._column_mixins._MaskedColumnGetitemShim.getitem
File "astropy/table/_column_mixins.pyx", line 64, in astropy.table._column_mixins.base_getitem
File "astropy/table/_column_mixins.pyx", line 88, in astropy.table._column_mixins.masked_column_getitem
File "/home/aysegul/anaconda3/lib/python3.11/site-packages/numpy/ma/core.py", line 3229, in getitem
_mask = self._mask
^^^^^^^^^^
AttributeError: 'MaskedColumn' object has no attribute '_mask'. Did you mean: 'mask'?
(base) aysegul@aysegul-omen:
/SteParSyn-main$

What might be the problem? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant