File tree Expand file tree Collapse file tree 3 files changed +3
-8
lines changed
src/aind_behavior_vr_foraging/data_mappers Expand file tree Collapse file tree 3 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class DataMapperCli(BaseSettings, cli_kebab_case=True):
2121 default = None ,
2222 description = "End time of the session in ISO format. If not provided, will use the time the data mapping is run." ,
2323 )
24+ suffix : t .Optional [str ] = Field (default = "vrforaging" , description = "Suffix to append to the output filenames." )
2425
2526 def cli_cmd (self ):
2627 """Generate aind-data-schema metadata for the VR Foraging dataset located at the specified path."""
@@ -41,8 +42,8 @@ def cli_cmd(self):
4142 assert rig_mapper .mapped is not None
4243
4344 session_mapper .mapped .instrument_id = rig_mapper .mapped .instrument_id
44- session_mapper .write_standard_file ()
45- rig_mapper .write_standard_file ()
45+ session_mapper .mapped . write_standard_file (output_directory = Path ( self . data_path ), filename_suffix = self . suffix )
46+ rig_mapper .mapped . write_standard_file (output_directory = Path ( self . data_path ), filename_suffix = self . suffix )
4647 logger .info (
4748 "Mapping completed! Saved acquisition.json and instrument.json to %s" ,
4849 self .data_path ,
Original file line number Diff line number Diff line change @@ -55,9 +55,6 @@ def rig_schema(self):
5555 def session_name (self ):
5656 raise NotImplementedError ("Method not implemented." )
5757
58- def write_standard_file (self ) -> None :
59- self .mapped .write_standard_file (self ._data_path , filename_suffix = "vrforaging" )
60-
6158 def map (self ) -> instrument .Instrument :
6259 logger .info ("Mapping aind-data-schema Rig." )
6360 self ._mapped = self ._map (self ._data_path )
Original file line number Diff line number Diff line change @@ -124,9 +124,6 @@ def _map(self) -> acquisition.Acquisition:
124124 )
125125 return aind_data_schema_session
126126
127- def write_standard_file (self ) -> None :
128- self .mapped .write_standard_file (Path (self ._data_path ), filename_suffix = "vrforaging" )
129-
130127 def _get_subject_details (self ) -> acquisition .AcquisitionSubjectDetails :
131128 return acquisition .AcquisitionSubjectDetails (
132129 mouse_platform_name = TrackedDevices .WHEEL ,
You can’t perform that action at this time.
0 commit comments