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

Conjure: Consider adding Conjure object UUID for connecting objects that are generated from it #673

Open
rbyh opened this issue Jun 23, 2024 · 1 comment
Assignees

Comments

@rbyh
Copy link
Contributor

rbyh commented Jun 23, 2024

A conjured Results object contains the original file columns as questions and answers.
The user has not necessarily also created an AgentList from the file, but should we provide an easy way to connect the results to the agent list that would be created -- eg a UUID for the Conjure object that is included in any agent list, survey or results that is generated from it (people may reuse the datafile_name)?

@johnjosephhorton
Copy link
Contributor

So all coop-able objects now have a unique __hash__ identifier that is 19 digits. We could record these somewhere, though this seems like a meta-relationship task best suited for coop than making the objects "know" about this relationship. That being said, I was thinking about making __contains__ to capture ideas like a question being in a survey, a survey being in a results, an agent list being in results etc. so you could so stuff like:

>>> my_agent in my_cool_results 
True
>>> QuestionFreeText.example() in survey
False

is that agent was actually used in creating the results. Thoughts @apostolosfilippas and @rbyh ?

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

No branches or pull requests

2 participants