Skip to content

Commit

Permalink
added stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Philipp Wegner committed Oct 22, 2023
1 parent a0c93f4 commit 9c1acc9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
Binary file modified backend/__pycache__/main.cpython-38.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions backend/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
print("Loading FASTAPI...")


version="0.2.5"
version="0.2.6"


app = FastAPI(
Expand Down Expand Up @@ -345,7 +345,7 @@ def ai_mapping_2_csv(csvFile: UploadFile, variableColumnName: str = "Variable",
uuid = str(uuid4())

pd.DataFrame(data, columns=columns).to_csv(f'tmp/{uuid}.csv')

#print(BACKEND_URL)
return {
"file": BACKEND_URL + "download/" + uuid
}
Expand Down
6 changes: 6 additions & 0 deletions backend/tmp/60b16510-4692-48f9-bf73-7a63fcfb9889.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
,"""Variable""","""Description""",target,OMOP
0,"""gender""",,biological sex,4135376.0
1,"""Left hippocampus""","""The volume of the hippocampus (left)""",left hippocampus volume,
2,"""clock_draw""","""Clock drawing test""",clock drawing test,
3,"""Cognitive tests: TMT""","""Trail Making Test date (dd/mm/yyyy)""",verbal fluency tests (semantic) animal,
4,"""Cognitive tests: MMSE""","""Mini-Mental State Examination (MMSE) assessment date (dd/mm/yyyy)""",mini-mental state examination (mmse),40491929.0
6 changes: 6 additions & 0 deletions backend/tmp/828a4b6e-5875-4a4a-91eb-132ed8a94085.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
,"""Variable""","""Description""",target,OMOP
0,"""gender""",,biological sex,4135376.0
1,"""Left hippocampus""","""The volume of the hippocampus (left)""",left hippocampus volume,
2,"""clock_draw""","""Clock drawing test""",clock drawing test,
3,"""Cognitive tests: TMT""","""Trail Making Test date (dd/mm/yyyy)""",verbal fluency tests (semantic) animal,
4,"""Cognitive tests: MMSE""","""Mini-Mental State Examination (MMSE) assessment date (dd/mm/yyyy)""",mini-mental state examination (mmse),40491929.0

0 comments on commit 9c1acc9

Please sign in to comment.