Skip to content

Commit 0c9d75e

Browse files
committed
Fix path issues
1 parent 482048d commit 0c9d75e

4 files changed

Lines changed: 12 additions & 11 deletions

File tree

scripts/aind.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,8 @@ def _run_data_transfer(
9999
source=launcher.session_directory,
100100
settings=RobocopySettings(
101101
delete_src=False,
102-
destination=Path(watchdog_settings.destination),
102+
destination=Path(watchdog_settings.destination)
103+
/ launcher.session_directory.name,
103104
exclude_dirs=["behavior-videos"],
104105
),
105106
).transfer()

src/packages/aind_behavior_vr_foraging/src/aind_behavior_vr_foraging/data_contract/v1.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -385,17 +385,17 @@ def dataset(
385385
),
386386
),
387387
SoftwareEvents(
388-
name="SessionStartTime",
388+
name="StartSessionTime",
389389
description="An event emitted at the start of the session. Data contains a UTC timestamp of the session start time.",
390390
reader_params=SoftwareEvents.make_params(
391-
root_path / "behavior/SoftwareEvents/SessionStartTime.json"
391+
root_path / "behavior/SoftwareEvents/StartSessionTime.json"
392392
),
393393
),
394394
SoftwareEvents(
395-
name="SessionEndTime",
395+
name="EndSessionTime",
396396
description="An event emitted at the end of the session. Data contains a UTC timestamp of the session end time.",
397397
reader_params=SoftwareEvents.make_params(
398-
root_path / "behavior/SoftwareEvents/SessionEndTime.json"
398+
root_path / "behavior/SoftwareEvents/EndSessionTime.json"
399399
),
400400
),
401401
],

src/packages/aind_behavior_vr_foraging/src/aind_behavior_vr_foraging/data_mappers/_acquisition.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ def _map(self) -> acquisition.Acquisition:
133133
def _stream_bound_times(self) -> tuple[datetime.datetime, datetime.datetime]:
134134
"""Get the start and end times for the data stream. This is used to determine the duration of the session."""
135135

136-
stream_start_path = Path(self._data_path) / "behavior/SoftwareEvents/SessionStartTime.json"
137-
stream_end_path = Path(self._data_path) / "behavior/SoftwareEvents/SessionEndTime.json"
136+
stream_start_path = Path(self._data_path) / "behavior/SoftwareEvents/StartSessionTime.json"
137+
stream_end_path = Path(self._data_path) / "behavior/SoftwareEvents/EndSessionTime.json"
138138
stream_start_time: Optional[datetime.datetime] = None
139139
stream_end_time: Optional[datetime.datetime] = None
140140

src/packages/aind_behavior_vr_foraging/tests/test_aind_data_mapper.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,16 @@ def write_mock_software_events(
4747

4848
events_dir = data_path / "behavior" / "SoftwareEvents"
4949
_write_events(
50-
events_dir / "SessionStartTime.json",
50+
events_dir / "StartSessionTime.json",
5151
time_event,
52-
[SoftwareEvent[datetime](name="SessionStartTime", timestamp=0.0, timestamp_source="harp", data=start_time)],
52+
[SoftwareEvent[datetime](name="StartSessionTime", timestamp=0.0, timestamp_source="harp", data=start_time)],
5353
)
5454
_write_events(
55-
events_dir / "SessionEndTime.json",
55+
events_dir / "EndSessionTime.json",
5656
time_event,
5757
[
5858
SoftwareEvent[datetime](
59-
name="SessionEndTime",
59+
name="EndSessionTime",
6060
timestamp=(end_time - start_time).total_seconds(),
6161
timestamp_source="harp",
6262
data=end_time,

0 commit comments

Comments
 (0)