Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
moonshoes87 opened this issue Jun 19, 2019 · 0 comments

Comments

@moonshoes87
Copy link
Member

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:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant