MOST notebook#334
Open
jonesmg wants to merge 6 commits into
Open
Conversation
bsipocz
reviewed
Jun 16, 2026
bsipocz
left a comment
Member
There was a problem hiding this comment.
The char.add complain with numpy 1.24 seems to be legitime, here is the traceback. The other failure should be fixed with the suggestion (though I'm puzzled how/why it's passing for the rest of the jobs)
---------------------------------------------------------------------------
UFuncTypeError Traceback (most recent call last)
Cell In[1], line 8
5 ordered_metadata.sort(['mjd_obs','band'])
7 #Construct the image IDs to relate rows to those in the results table
----> 8 ordered_metadata['Image_ID'] = np.char.add(np.char.add(ordered_metadata['scan_id']+'_',
9 np.array(ordered_metadata['frame_num'],dtype='str')+'_'),
10 np.array(ordered_metadata['band'],dtype='str'))
12 #Duplicate results table and index by image ID
13 indexed_results = most_output['results']
UFuncTypeError: ufunc 'add' did not contain a loop with signature matching types (dtype('<U6'), dtype('<U1')) -> None
Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com>
Co-authored-by: Brigitta Sipőcz <b.sipocz@gmail.com>
Author
|
@bsipocz I think this should run correctly now, but let me know if there is anything else I should tweak/fix. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added the new MOST notebook and included it in the toc.yml.
I decided to put this under the techniques and tools section as MOST can be used with various dataset, even though the tutorial is mostly WISE-based.