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

Demag GUI failing to open on some data with ValueError: DataFrame index must be unique for orient='index'.

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

维护者通常 1 天内回复

@moonshoes87 已经在做这个了。

开始于 2019年6月19日。

  • #928 来自 @Swanson-Hysell —— 未关闭

评估

这个 Issue 还没有评估数据。

描述

Bug - Affects Features

What command was run:

demag_gui.py -WD data_files/3_0/McMurdo/ -v

What happened:

You are running:
pmagpy 4.2.26.post3
pmagpy-cli 4.2.26.post5
-I- Using online data model
-I- Getting method codes from earthref.org
-I- Importing controlled vocabularies from https://earthref.org
data model: 3.0
Traceback (most recent call last):
  File "/Users/nebula/Python/PmagPy/programs/demag_gui.py", line 8683, in <module>
    main()
  File "/Users/nebula/Python/PmagPy/programs/demag_gui.py", line 8679, in main
    start(WD=WD, write_to_log_file=write_to_log_file, DM=data_model, meas_file=meas_file)
  File "/Users/nebula/Python/PmagPy/programs/demag_gui.py", line 8651, in start
    meas_file=meas_file)
  File "/Users/nebula/Python/PmagPy/programs/demag_gui.py", line 260, in __init__
    self.Data_info = self.get_data_info()  # Read  er_* data
  File "/Users/nebula/Python/PmagPy/programs/demag_gui.py", line 4586, in get_data_info
    data_er_locations = loc2_data.to_dict('index')
  File "/Users/nebula/anaconda3/envs/pmagpy/lib/python3.6/site-packages/pandas/core/frame.py", line 1316, in to_dict
    "DataFrame index must be unique for orient='index'."
ValueError: DataFrame index must be unique for orient='index'.
/Users/nebula/anaconda3/envs/pmagpy/bin/pythonw: line 3: 46839 Segmentation fault: 11  /Users/nebula/anaconda3/envs/pmagpy/python.app/Contents/MacOS/python "$@"

What I expected to happen:

Demag GUI to open without errors.

Data file(s):

See data_files/3_0/McMurdo

Screenshot(s):

PmagPy version:

主要语言
Jupyter Notebook
星标
81
派生
45
平均合并
1 天 16 小时
30 天内合并 PR
29

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

PmagPy/PmagPy 的其他 Issue

查看 PmagPy/PmagPy 的全部 Issue

把新 issue 发到你的邮箱

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