Closed JosephKarpinski closed 1 year ago
Hi @JosephKarpinski, thanks for reporting this. While I was able to run this notebook without issue, I see that there is a deprecation warning for setting an array element with a sequence for the rot
variable:
DeprecationWarning: setting an array element with a sequence. This was supported in some cases where the elements are arrays with a single element. For example
np.array([1, np.array([2])], dtype=int)
. In the future this will raise the same ValueError asnp.array([1, [2]], dtype=int)
. rot = np.array(rot,np.float64).flatten()
Try replacing rot=(f4['ra'],f4['dec'],0)
with rot=(f4['ra'].array[0],f4['dec'].array[0],0)
Let me know if this works for you, and I will update the notebook accordingly.
That worked. Thank you!
Exploring SMASH DR2 receiving multiple errors.
https://github.com/astro-datalab/notebooks-latest/blob/master/03_ScienceExamples/GalacticStructure/ExploringSMASHDR2.ipynb
See attached screen prints