Skip to content

scene_manager.stats_manager.save_to_csv wrong key word in init file #299

Closed

Description

@oriel-perl

In the init file kw argument for the csv file is path but it is an unknown argument in the function:

scene_manager.stats_manager.save_to_csv(path=stats_file_path, base_timecode=video.base_timecode)

it should be -
scene_manager.stats_manager.save_to_csv(csv_file=stats_file_path, base_timecode=video.base_timecode)

Activity

  1. added this to the v0.6.1 milestone on Nov 16, 2022
  2. oriel-perl commented on Nov 21, 2022

    @oriel-perl
    Author

    the error is not resolved:
    from running -

    scene_list = detect(video_path=video_path,
                       detector=AdaptiveDetector(luma_only=True,min_scene_len=300,window_width=2),
                       show_progress=True)
    
    

    I get the error

      File "/home/user/miniconda/lib/python3.8/site-packages/scenedetect/__init__.py", line 193, in detect
        scene_manager.stats_manager.save_to_csv(
    TypeError: save_to_csv() got an unexpected keyword argument 'path'
    

    that references the function call -

    scene_manager.stats_manager.save_to_csv(path=stats_file_path, base_timecode=video.base_timecode)
    

    Thanks!!

  3. Breakthrough commented on Nov 22, 2022

    @Breakthrough
    Owner

    This is fixed in the v0.6.1 branch and will be included in the next release of PySceneDetect. You can download a development version from one of the recent builds in the meantime. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions