Skip to content

[Bug] Missing BaseDataSource import in sedna_predict.py across multiple RFNet example paths #522

Description

@SurbhiD404

Description

While reviewing the RFNet and ERFNet Sedna integration scripts, I noticed that several sedna_predict.py files reference BaseDataSource in pre_data_process() but only import IndexDataParse from sedna.datasources.

This appears inconsistent with other files in the repository that use BaseDataSource and explicitly import it.

Affected Files

  • examples/robot/lifelong_learning_bench/semantic-segmentation/testalgorithms/rfnet/RFNet/sedna_predict.py
  • examples/cityscapes-synthia/lifelong_learning_bench/curb-detection/testalgorithms/rfnet/RFNet/sedna_predict.py
  • examples/cityscapes-synthia/lifelong_learning_bench/semantic-segmentation/testalgorithms/rfnet/RFNet/sedna_predict.py
  • examples/cityscapes-synthia/scene-based-unknown-task-recognition/curb-detection/testalgorithms/rfnet/RFNet/sedna_predict.py

Evidence

These files contain:

from sedna.datasources import IndexDataParse

and later:

data = BaseDataSource(data_type="test")

I could not find a local definition or import of BaseDataSource in these files.

Other RFNet/ERFNet modules in the repository explicitly import:

from sedna.datasources import BaseDataSource

Proposed Fix

Update the import statement:

# Before
from sedna.datasources import IndexDataParse

# After
from sedna.datasources import IndexDataParse, BaseDataSource

Notes

This issue was identified through code inspection and repository-wide searches while investigating similar missing-import patterns.

Related

Potential Runtime Impact

pre_data_process() contains:

data = BaseDataSource(data_type="test")

but BaseDataSource is not imported in the affected files.

If this code path is executed and BaseDataSource is not provided by the runtime environment, Python is expected to raise:

NameError: name 'BaseDataSource' is not defined

based on standard Python name resolution and import behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions