Skip to content

Backend error when using data directory with CellNEST-interactive #1

@thesecondfox

Description

@thesecondfox

When running the CellNEST-interactive project with the command cellnest_interactive 8080 server/data/files/ as per the documentation, the backend throws the following errors:

  1. After setting the data directory parameter to server/data/files/, the backend attempts to open this path and encounters IsADirectoryError: [Errno 21] Is a directory: 'server/data/files/'. This is because backend code (such as the get_vertex_types view) tries to open the directory as a file using open().
  2. In some backend data processing logic, the code uses numbers as DataFrame column names (e.g., temp[2]), but the actual column names are strings. This leads to KeyError: 2.

Suggestions:

  • Fix the backend logic for reading the data directory, ensuring that only actual files are opened, not directories.
  • For DataFrame access, please use .iloc or .values for positional access, or use actual column names.
  • Update documentation to clarify that users should provide a specific file path instead of a directory, or make the backend automatically detect and process files within a directory.
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions