-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating data processing code to add demographic data, post game surv…
…ey, playername-to-station mapping (#572) This PR: - Adds code to populate the DB with demographic data, postgame survey data, and a playername-to-station mapping. - Adds *.egg-info to .gitignore, removes accidentally added .egg-info files from previous commit. - Updates the inspect file creation script to point to the new location of the sqlite db - Adds code for sentence labeling --------- Co-authored-by: Paulo Soares <[email protected]>
- Loading branch information
Showing
17 changed files
with
708 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,3 +109,5 @@ HSR* | |
|
||
# Texpad | ||
*.texpadtmp/ | ||
|
||
*.egg-info |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Update inspect-data.json | ||
time datasette inspect /space/paulosoares/tomcat/tomcat.db > inspect-data.json | ||
time datasette inspect /space/$USER/tomcat/.dev/tomcat.db > inspect-data.json |
10 changes: 0 additions & 10 deletions
10
human_experiments/datasette_interface/datasette_interface.egg-info/PKG-INFO
This file was deleted.
Oops, something went wrong.
75 changes: 0 additions & 75 deletions
75
human_experiments/datasette_interface/datasette_interface.egg-info/SOURCES.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
human_experiments/datasette_interface/datasette_interface.egg-info/dependency_links.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
human_experiments/datasette_interface/datasette_interface.egg-info/top_level.txt
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
140 changes: 140 additions & 0 deletions
140
...eriments/datasette_interface/datasette_interface/database/entity/base/post_game_survey.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
from typing import Optional | ||
from sqlalchemy import Integer, Text, Boolean, ForeignKey | ||
from sqlalchemy.orm import Mapped, mapped_column | ||
|
||
from datasette_interface.database.config import Base | ||
from datasette_interface.database.entity.base.participant import Participant | ||
|
||
|
||
class PostGameSurvey(Base): | ||
__tablename__ = "post_game_survey" | ||
|
||
participant_id: Mapped[int] = mapped_column( | ||
"participant", Integer, ForeignKey(Participant.id), primary_key=True | ||
) | ||
|
||
agent_calm: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_anxious: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_excited: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_sad: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_guilty: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_angry: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_happy: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_lonely: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_proud: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_friendly: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
game_calm: Mapped[Optional[str]] = mapped_column(Text) | ||
game_anxious: Mapped[Optional[str]] = mapped_column(Text) | ||
game_excited: Mapped[Optional[str]] = mapped_column(Text) | ||
game_sad: Mapped[Optional[str]] = mapped_column(Text) | ||
game_guilty: Mapped[Optional[str]] = mapped_column(Text) | ||
game_angry: Mapped[Optional[str]] = mapped_column(Text) | ||
game_happy: Mapped[Optional[str]] = mapped_column(Text) | ||
game_lonely: Mapped[Optional[str]] = mapped_column(Text) | ||
game_proud: Mapped[Optional[str]] = mapped_column(Text) | ||
game_friendly: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
agent_intel: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_care: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_honest: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_expert: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_concern: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_trust: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_comp: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_insens: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_honor: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_bright: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_understand: Mapped[Optional[int]] = mapped_column(Integer) | ||
agent_phoney: Mapped[Optional[int]] = mapped_column(Integer) | ||
|
||
agent_well: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_smooth: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_acc: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_like: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_enjoy: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_awk: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_place: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_play: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_perform: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
team_calm: Mapped[Optional[str]] = mapped_column(Text) | ||
team_anxious: Mapped[Optional[str]] = mapped_column(Text) | ||
team_excited: Mapped[Optional[str]] = mapped_column(Text) | ||
team_sad: Mapped[Optional[str]] = mapped_column(Text) | ||
team_guilty: Mapped[Optional[str]] = mapped_column(Text) | ||
team_angry: Mapped[Optional[str]] = mapped_column(Text) | ||
team_happy: Mapped[Optional[str]] = mapped_column(Text) | ||
team_lonely: Mapped[Optional[str]] = mapped_column(Text) | ||
team_proud: Mapped[Optional[str]] = mapped_column(Text) | ||
team_friendly: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
team_intel: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_care: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_honest: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_expert: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_concern: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_trust: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_comp: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_insens: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_honor: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_bright: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_understand: Mapped[Optional[int]] = mapped_column(Integer) | ||
team_phoney: Mapped[Optional[int]] = mapped_column(Integer) | ||
|
||
team_wrong: Mapped[Optional[str]] = mapped_column(Text) # typo.. | ||
team_forget: Mapped[Optional[str]] = mapped_column(Text) | ||
team_minimize: Mapped[Optional[str]] = mapped_column(Text) | ||
team_insult: Mapped[Optional[str]] = mapped_column(Text) | ||
team_irrat: Mapped[Optional[str]] = mapped_column(Text) | ||
team_crit: Mapped[Optional[str]] = mapped_column(Text) | ||
team_fault: Mapped[Optional[str]] = mapped_column(Text) | ||
team_ignore: Mapped[Optional[str]] = mapped_column(Text) | ||
team_impt: Mapped[Optional[str]] = mapped_column(Text) | ||
team_weak: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
team_along: Mapped[Optional[str]] = mapped_column(Text) | ||
team_smooth: Mapped[Optional[str]] = mapped_column(Text) | ||
team_accept: Mapped[Optional[str]] = mapped_column(Text) | ||
team_like: Mapped[Optional[str]] = mapped_column(Text) | ||
team_enjoy: Mapped[Optional[str]] = mapped_column(Text) | ||
team_awk: Mapped[Optional[str]] = mapped_column(Text) | ||
team_place: Mapped[Optional[str]] = mapped_column(Text) | ||
team_likeme: Mapped[Optional[str]] = mapped_column(Text) | ||
team_genuine: Mapped[Optional[str]] = mapped_column(Text) | ||
team_part: Mapped[Optional[str]] = mapped_column(Text) | ||
team_listen: Mapped[Optional[str]] = mapped_column(Text) | ||
team_ilike: Mapped[Optional[str]] = mapped_column(Text) | ||
team_interact: Mapped[Optional[str]] = mapped_column(Text) | ||
team_itrust: Mapped[Optional[str]] = mapped_column(Text) | ||
team_fit: Mapped[Optional[str]] = mapped_column(Text) | ||
team_cohesion: Mapped[Optional[str]] = mapped_column(Text) | ||
team_work: Mapped[Optional[str]] = mapped_column(Text) | ||
team_knit: Mapped[Optional[str]] = mapped_column(Text) | ||
team_like_mem: Mapped[Optional[str]] = mapped_column(Text) | ||
team_work_well: Mapped[Optional[str]] = mapped_column(Text) | ||
team_decision: Mapped[Optional[str]] = mapped_column(Text) | ||
team_express: Mapped[Optional[str]] = mapped_column(Text) | ||
team_organize: Mapped[Optional[str]] = mapped_column(Text) | ||
team_accomplish: Mapped[Optional[str]] = mapped_column(Text) | ||
team_approp: Mapped[Optional[str]] = mapped_column(Text) | ||
team_alt: Mapped[Optional[str]] = mapped_column(Text) | ||
team_influ: Mapped[Optional[str]] = mapped_column(Text) | ||
team_contrib: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
agent_emot1: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot2: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot3: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot4: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot5: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot6: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot7: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot8: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot9: Mapped[Optional[str]] = mapped_column(Text) | ||
agent_emot10: Mapped[Optional[str]] = mapped_column(Text) | ||
|
||
know_team_members: Mapped[Optional[bool]] = mapped_column(Boolean) | ||
know_person_at_cheetah: Mapped[Optional[str]] = mapped_column(Text) | ||
know_person_at_lion: Mapped[Optional[str]] = mapped_column(Text) | ||
know_person_at_tiger: Mapped[Optional[str]] = mapped_column(Text) | ||
know_person_at_leopard: Mapped[Optional[str]] = mapped_column(Text) |
Oops, something went wrong.