Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added dialog for known places with schema #185

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

JocelynVelarde
Copy link
Member

Added test file, schema and dialog for room identification from known places list: living room, dinning room, kitchen, bedroom, entrance.

@JocelynVelarde JocelynVelarde requested a review from a team as a code owner March 20, 2025 00:01
Copy link
Member

@Oscar-gg Oscar-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, please check comments

Copy link
Member

@Oscar-gg Oscar-gg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please check the comments, good test cases!



# Create a copy of areas.json for consistent testing
shutil.copy("areas.json", "test_areas.json")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we can make a copy manually in the test folder, because I think this would always override test_areas.json, right?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, I think the file doesn't exist, I got the following error when running deepeval test run test_room_identification.py

image

@@ -0,0 +1,56 @@
import json
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When running this file I got the error:

ImportError while importing test module '/home/oscar/Repositories/home2/hri/packages/nlp/test/test_room_identification.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/home/oscar/miniconda3/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_room_identification.py:11: in <module>
    from nlp.assets.dialogs import get_room_identification_dialog
E   ModuleNotFoundError: No module named 'nlp'

Please add the following to make the module visible:

import sys
sys.path.append("..")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants