REQ conditioned on context values
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 43
- Forks
- 60
- Avg merge
- 19h 56m
- Merged PRs (30d)
- 3
Description
Hi all,
I am wondering if it is possible to create checks which are conditional on context values. For example for the HPC deepcam benchmark, the optimizers which can be chosen are LAMB and Adam(W). LAMB has more parameters than Adam so I require those to be logged and checked but only if opt_name == LAMB. Is there a way to achieve this with the current EXACTLY_ONE, AT_LEAST_ONE and AT_LEAST_ONE_OR? It would be sufficient to have a requirement checking which marks it optional depending on the context dict.
Best
Thorsten
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the existing EXACTLY_ONE, AT_LEAST_ONE, and AT_LEAST_ONE_OR requirement handling and how the context dict is used. Define and test the conditional behavior using the DeepCAM optimizer example, where LAMB-specific parameters are required only when opt_name is LAMB.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100