Skip to content

Commit

Permalink
minor organization of files
Browse files Browse the repository at this point in the history
  • Loading branch information
qian-chu committed Oct 18, 2024
1 parent d0609c3 commit 4fdb248
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 31,844 deletions.
4 changes: 2 additions & 2 deletions pyneon/export/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .export_bids import export_motion_bids, exports_eye_bids
from .export_bids import export_motion_bids, export_eye_bids

__all__ = ["export_motion_bids", "exports_eye_bids"]
__all__ = ["export_motion_bids", "export_eye_bids"]
2 changes: 1 addition & 1 deletion pyneon/export/export_bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ def export_motion_bids(
scans.to_csv(scans_path, sep="\t", index=False)


def exports_eye_bids(rec: "NeonRecording", output_dir: Union[str, Path]):
def export_eye_bids(rec: "NeonRecording", output_dir: Union[str, Path]):
gaze = rec.gaze
eye_states = rec.eye_states
output_dir = Path(output_dir)
Expand Down
8 changes: 4 additions & 4 deletions pyneon/recording.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
estimate_scanpath,
)
from .vis import plot_distribution, plot_scanpath_on_video
from .export import export_motion_bids, exports_eye_bids
from .export import export_motion_bids, export_eye_bids


def _check_file(dir_path: Path, stem: str):
Expand Down Expand Up @@ -521,7 +521,7 @@ def plot_scanpath_on_video(
video_output_path,
)

def to_motion_bids(
def export_motion_bids(
self,
motion_dir: Union[str, Path],
prefix: str = "",
Expand Down Expand Up @@ -556,7 +556,7 @@ def to_motion_bids(
"""
export_motion_bids(self, motion_dir, prefix, extra_metadata)

def to_eye_bids(
def export_eye_bids(
self,
output_dir: Union[str, Path],
prefix: str = "",
Expand Down Expand Up @@ -585,4 +585,4 @@ def to_eye_bids(
The extension is still being finialized. This method follows the latest standards
outlined in https://github.com/bids-standard/bids-specification/pull/1128.
"""
exports_eye_bids(self, output_dir, prefix, extra_metadata)
export_eye_bids(self, output_dir, prefix, extra_metadata)
Loading

0 comments on commit 4fdb248

Please sign in to comment.