Demag GUI failing to open on some data with ValueError: DataFrame index must be unique for orient='index'.
未关闭
维护者通常 1 天内回复
评估
这个 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 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PmagPy/PmagPy 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 55/100
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 35/100
维护者通常 1 天内回复
-
Update - Documentation
难度 4/5 3-5 天 新手友好度 55/100
维护者通常 1 天内回复
-
convert.jr6_jr6 writes the sample azimuth and dip into bed_dip_direction and bed_dip可能已有人在做 @Caoimhinmg 于 18 天前认领。 未关闭
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 72/100
维护者通常 1 天内回复