pcdshub / pcdshub/hutch-python

Namespace Creation Creates Invalid Names

Open
#149 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
1
Forks
18
Avg merge
7d 9h
Merged PRs (30d)
1

Description

Related to #147 but slightly different. If a device is named mfx_gige_01, we place this in a namespace accessed by mfx.gige.01 the only issue is this is an invalid Python attribute name.

I think this requires a different fix than #147. That issue has to with an invalid input into the system, this takes a valid Python identifier and deconstructs it until it is no longer usable.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare this report with related issue #147, then trace the namespace-creation path in the repository to find where the valid device name is decomposed. Confirm how Python attribute names are produced and define a result that preserves usability without treating the original device name as invalid.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.