SainsburyWellcomeCentre / aeon_experiments

Experiment workflows for Project Aeon
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Aeon3 RFID Visualizer Patch1 and Patch2 swapped #486

Closed jkbhagatio closed 7 months ago

jkbhagatio commented 8 months ago

we just swapped the com ports in device manager for these - will test with a tag shortly and then close

lochhh commented 8 months ago

The data is also affected, where RfidPatch1 corresponds to CameraPatch2, and vice versa:

root = "/ceph/aeon/aeon/data/raw/AEON3/social0.2/"
start_time = pd.Timestamp("2024-01-31 11:28:45.543519974")
end_time = pd.Timestamp("2024-02-03 16:28:29.139999866")

rfid_p1 = aeon_api.load(
    root,
    aeon.io.reader.Harp(pattern="Patch1Rfid_32_*", columns=["Rfid"]),
    start=start_time,
    end=end_time,
)
rfid_p2 = aeon_api.load(
    root,
    aeon.io.reader.Harp(pattern="Patch2Rfid_32_*", columns=["Rfid"]),
    start=start_time,
    end=end_time,
)

p1_frames = aeon_api.load(
  root, 
  exp02.CameraPatch1.Video, 
  time=rfid_p2.index
)
p2_frames = aeon_api.load(
  root, 
  exp02.CameraPatch2.Video, 
  time=rfid_p1.index
)
jkbhagatio commented 7 months ago

Closing this as done.