Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Unexpected failure in spectro completeness notebook

未关闭
#98 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@forero 已经在做这个了。

开始于 2024年1月18日。

评估

这个 Issue 还没有评估数据。

描述

bug

In onskydata/spectro_completeness.ipynb, the cell that begins

z = []
fba = []
exp_fba = []
target = []
zmtl = []

throws an exception when run on Perlmutter with kernel 22.2 or 23.1. The full output from the cell is:

failed for redrock file from petal 1, tileid 4117 and night 20221122
failed for redrock file from petal 5, tileid 4117 and night 20221122
failed for zmtl file from petal 1, tileid 4117 and night 20221122
failed for zmtl file from petal 5, tileid 4117 and night 20221122
failed for redrock file from petal 1, tileid 5648 and night 20220324
failed for redrock file from petal 7, tileid 8776 and night 20220104
failed for zmtl file from petal 7, tileid 8776 and night 20220104
failed for redrock file from petal 7, tileid 8777 and night 20220104
failed for zmtl file from petal 7, tileid 8777 and night 20220104
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[6], line 45
     42             print("failed for zmtl file from petal {}, tileid {} and night {}".format(petal, tileid, lastnight))
     44 data_z = np.hstack(z)
---> 45 data_fba = np.hstack(fba)
     46 data_exp_fba = np.hstack(exp_fba)
     47 data_target = np.hstack(target)

File <__array_function__ internals>:180, in hstack(*args, **kwargs)

File /global/common/software/desi/perlmutter/desiconda/20230111-2.1.0/conda/lib/python3.10/site-packages/numpy/core/shape_base.py:343, in hstack(tup)
    341 # As a special case, dimension 0 of 1-dimensional arrays is "horizontal"
    342 if arrs and arrs[0].ndim == 1:
--> 343     return _nx.concatenate(arrs, 0)
    344 else:
    345     return _nx.concatenate(arrs, 1)

File <__array_function__ internals>:180, in concatenate(*args, **kwargs)

TypeError: invalid type promotion with structured datatype(s).
主要语言
Jupyter Notebook
星标
62
派生
25
PR 合并指标
30 天内没有已合并 PR

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

desihub/tutorials 的其他 Issue

查看 desihub/tutorials 的全部 Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。