Skip to content

Commit

Permalink
Temporary supress failing doctest for plexon2 (#1043)
Browse files Browse the repository at this point in the history
  • Loading branch information
h-mayorquin authored Aug 29, 2024
1 parent a8d702d commit b5ca011
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions docs/conversion_examples_gallery/recording/plexon2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ Convert Plexon2 recording data to NWB using :py:class:`~neuroconv.datainterfaces

.. code-block:: python
>>> from datetime import datetime
>>> from zoneinfo import ZoneInfo
>>> from pathlib import Path
>>> from neuroconv.datainterfaces import Plexon2RecordingInterface
>>>
>>> file_path = f"{ECEPHY_DATA_PATH}/plexon/4chDemoPL2.pl2"
>>> # Change the file_path to the location in your system
>>> interface = Plexon2RecordingInterface(file_path=file_path, verbose=False)
>>>
>>> # Extract what metadata we can from the source files
>>> metadata = interface.get_metadata()
>>> # For data provenance we add the time zone information to the conversion
>>> tzinfo = ZoneInfo("US/Pacific")
>>> session_start_time = metadata["NWBFile"]["session_start_time"]
>>> metadata["NWBFile"].update(session_start_time=session_start_time.replace(tzinfo=tzinfo))
>>>
>>> # Choose a path for saving the nwb file and run the conversion
>>> nwbfile_path = f"{path_to_save_nwbfile}"
>>> interface.run_conversion(nwbfile_path=nwbfile_path, metadata=metadata)
from datetime import datetime
from zoneinfo import ZoneInfo
from pathlib import Path
from neuroconv.datainterfaces import Plexon2RecordingInterface
file_path = f"{ECEPHY_DATA_PATH}/plexon/4chDemoPL2.pl2"
# Change the file_path to the location in your system
interface = Plexon2RecordingInterface(file_path=file_path, verbose=False)
# Extract what metadata we can from the source files
metadata = interface.get_metadata()
# For data provenance we add the time zone information to the conversion
tzinfo = ZoneInfo("US/Pacific")
session_start_time = metadata["NWBFile"]["session_start_time"]
metadata["NWBFile"].update(session_start_time=session_start_time.replace(tzinfo=tzinfo))
# Choose a path for saving the nwb file and run the conversion
nwbfile_path = f"{path_to_save_nwbfile}"
interface.run_conversion(nwbfile_path=nwbfile_path, metadata=metadata)

0 comments on commit b5ca011

Please sign in to comment.