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

[BUG] <title> Uploading ZIP unsuccessfull #256

Open
1 task done
filimannino opened this issue Feb 13, 2025 · 1 comment
Open
1 task done

[BUG] <title> Uploading ZIP unsuccessfull #256

filimannino opened this issue Feb 13, 2025 · 1 comment
Labels
bug BUG - Something isn't working triage

Comments

@filimannino
Copy link
Collaborator

filimannino commented Feb 13, 2025

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

@guilbep @charlottegiseleweil I run these commands in a newly created branch from develop:

mkdir -p secrets && cat < secrets/.env
POSTGRES_USER=ccfatigue
POSTGRES_PASSWORD=mannino
EOF

make install

make dev-database
make dev-backend

make dev-frontend

All of them without any error.

When running:
make preprocessing

I got this:
Traceback (most recent call last):
File "/home/mannino/ccfatigue/backend/.venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3802, in get_loc
return self._engine.get_loc(casted_key)
File "pandas/_libs/index.pyx", line 138, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/index.pyx", line 165, in pandas._libs.index.IndexEngine.get_loc
File "pandas/_libs/hashtable_class_helper.pxi", line 5745, in pandas._libs.hashtable.PyObjectHashTable.get_item
File "pandas/_libs/hashtable_class_helper.pxi", line 5753, in pandas._libs.hashtable.PyObjectHashTable.get_item
KeyError: 'MD_Displacement--1'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/mannino/ccfatigue/backend/preprocessing/hysteresis_loops.py", line 153, in
main()
File "/home/mannino/ccfatigue/backend/preprocessing/hysteresis_loops.py", line 134, in main
hyst_df = process_hysteresis(df, test_meta)["hyst_df"]
File "/home/mannino/ccfatigue/backend/preprocessing/hysteresis_loops.py", line 68, in process_hysteresis
strain=df[displacement_field] / test_meta["length"],
File "/home/mannino/ccfatigue/backend/.venv/lib/python3.10/site-packages/pandas/core/frame.py", line 3807, in getitem
indexer = self.columns.get_loc(key)
File "/home/mannino/ccfatigue/backend/.venv/lib/python3.10/site-packages/pandas/core/indexes/base.py", line 3804, in get_loc
raise KeyError(key) from err
KeyError: 'MD_Displacement--1'
make[1]: *** [Makefile:3: run] Error 1
make[1]: Leaving directory '/home/mannino/ccfatigue/backend/preprocessing'
make: *** [Makefile:25: preprocessing] Error 2

I have also run:

make api
make run

And I haven's got any error.

Considering all that: the make preprocessing error can be related to the fact that in the data upload page if i try to upload a .zip folder with experimental data he is not processing them and i cannot see the result of the datachecker.

Expected Behavior

No response

Steps To Reproduce

No response

Environment

- OS: Linux CCLAB-C007588 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
- Node: v18.19.1
- npm: 9.2.0

Anything else?

No response

@filimannino filimannino added bug BUG - Something isn't working triage labels Feb 13, 2025
@filimannino
Copy link
Collaborator Author

filimannino commented Feb 13, 2025

Image

This is how the data upload page looks like in the local version of the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug BUG - Something isn't working triage
Projects
None yet
Development

No branches or pull requests

1 participant