Skip to content

Commit

Permalink
Merge branch 'social_schema' into datajoint_social01
Browse files Browse the repository at this point in the history
  • Loading branch information
Thinh Nguyen committed Jan 19, 2024
2 parents 09b3852 + f259232 commit ae0110a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion aeon/schema/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
social01 = DotMap(
[
Device("Metadata", core.metadata),
Device("ExperimentalMetadata", social.environment_b, social.subject_b),
Device("Environment", social.environment_b, social.subject_b),
Device("CameraTop", core.video, social.camera_top_pos_b),
Device("CameraNorth", core.video),
Device("CameraSouth", core.video),
Expand Down
8 changes: 4 additions & 4 deletions aeon/schema/social.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

# LightEvents
light_events_b = lambda pattern: {
"LightEvents": reader.Csv("Environment_LightEvents_*", ["channel", "value"])
"LightEvents": reader.Csv(f"{pattern}_LightEvents_*", ["channel", "value"])
}

# Combine EnvironmentState, BlockState, LightEvents
Expand All @@ -45,18 +45,18 @@

# SubjectState
subject_state_b = lambda pattern: {
"SubjectState": reader.Csv("Environment_SubjectState_*", ["id", "weight", "type"])
"SubjectState": reader.Csv(f"{pattern}_SubjectState_*", ["id", "weight", "type"])
}

# SubjectVisits
subject_visits_b = lambda pattern: {
"SubjectVisits": reader.Csv("Environment_SubjectVisit_*", ["id", "type", "region"])
"SubjectVisits": reader.Csv(f"{pattern}_SubjectVisit_*", ["id", "type", "region"])
}

# SubjectWeight
subject_weight_b = lambda pattern: {
"SubjectWeight": reader.Csv(
"Environment_SubjectWeight_*", ["weight", "confidence", "subject_id", "int_id"]
f"{pattern}_SubjectWeight_*", ["weight", "confidence", "subject_id", "int_id"]
)
}

Expand Down

0 comments on commit ae0110a

Please sign in to comment.