Skip to content

small update to single dish routines#235

Merged
thomaswilliamsastro merged 4 commits intomasterfrom
akl_branch
Sep 19, 2023
Merged

small update to single dish routines#235
thomaswilliamsastro merged 4 commits intomasterfrom
akl_branch

Conversation

@akleroy
Copy link
Copy Markdown
Collaborator

@akleroy akleroy commented Apr 13, 2023

This patches some small syntax stuff in the single dish pipeline.

@akleroy
Copy link
Copy Markdown
Collaborator Author

akleroy commented Apr 13, 2023

@e-koch

num_chan_line = num_chan_scie[np.where(np.array(spws_scie) == spw_line)[0]]

# AKL - had to cast lists -> array then index with 0
freq_rep_line = np.array(freq_rep_scie)[np.where(np.array(spws_scie) == spw_line)[0]]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
freq_rep_line = np.array(freq_rep_scie)[np.where(np.array(spws_scie) == spw_line)[0]]
freq_rep_line = np.array(freq_rep_scie)[np.array(spws_scie) == spw_line]

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's simplify here but otherwise this is what I was hacking in, too


# AKL - had to cast lists -> array then index with 0
freq_rep_line = np.array(freq_rep_scie)[np.where(np.array(spws_scie) == spw_line)[0]]
chan_width_line = (np.array(chan_width_scie)[np.where(np.array(spws_scie) == spw_line)[0]])/1e6
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
chan_width_line = (np.array(chan_width_scie)[np.where(np.array(spws_scie) == spw_line)[0]])/1e6
chan_width_line = (np.array(chan_width_scie)[np.array(spws_scie) == spw_line]) / 1.e6

# AKL - had to cast lists -> array then index with 0
freq_rep_line = np.array(freq_rep_scie)[np.where(np.array(spws_scie) == spw_line)[0]]
chan_width_line = (np.array(chan_width_scie)[np.where(np.array(spws_scie) == spw_line)[0]])/1e6
num_chan_line = np.array(num_chan_scie)[np.where(np.array(spws_scie) == spw_line)[0]]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
num_chan_line = np.array(num_chan_scie)[np.where(np.array(spws_scie) == spw_line)[0]]
num_chan_line = np.array(num_chan_scie)[np.array(spws_scie) == spw_line]

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adjusted - I like this approach better too

@e-koch
Copy link
Copy Markdown
Collaborator

e-koch commented Jun 9, 2023

@akleroy -- finally pushed the fixes to the slicing, including splitting out the relevant functions out of analysisUtils.

@e-koch
Copy link
Copy Markdown
Collaborator

e-koch commented Jun 9, 2023

Also pinging @thomaswilliamsastro -- probably separate from the import issue you were fighting with, but we'll need to merge the SD pipeline changes here for the pipeline to work on >6.3 (I think)

@thomaswilliamsastro
Copy link
Copy Markdown
Collaborator

There was a conflict here, resolved and merged

@akleroy akleroy deleted the akl_branch branch August 20, 2025 16:01
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

Successfully merging this pull request may close these issues.

3 participants