pcdshub / lightpath

LCLS Lightpath Module
https://pcdshub.github.io/lightpath
Other
4 stars 9 forks source link

MNT: skip processing device if branches are not specified #188

Closed tangkong closed 5 months ago

tangkong commented 5 months ago

Description

How Has This Been Tested?

interactively, with test suite.

(Testing with xpppython now)

Where Has This Been Documented?

This PR, jira ticket

tangkong commented 5 months ago

I was looking at fixing that other issue, though it's a little more finicky. Should hopefully be in today

tangkong commented 5 months ago

I think this is good to be reviewed now. The changes here make lightpath more consistent. Now whenever you access a path, it will include only the items defined in its config up until the specified endpoint.

However, it doesn't actually limit the number of devices hutch python loads, in some cases. I'll go into more details in the JIRA ticket. If we do want to minimize loading, this first step is necessary