pcdshub / pytmc

Generate EPICS IOCs and records from TwinCAT projects - along with many TwinCAT project tools
https://pcdshub.github.io/pytmc/
Other
10 stars 11 forks source link

ENH: symbol-less data type record information #213

Closed klauer closed 4 years ago

klauer commented 4 years ago

Still requires .tmc file, but may help with validation of pcdsdevices PRs.

Sample (clipped) output:

$ pytmc summary L2SIVacuumLib.tsproj --types --filter-type ST_* --filter-type FB_*

...clipped...

Data type ST_FFVeto
-------------------

     $(PREFIX):Activate
     $(PREFIX):Activate_RBV
     $(PREFIX):Active_RBV
     $(PREFIX):Deactivate
     $(PREFIX):Deactivate_RBV
     $(PREFIX):Duration
     $(PREFIX):Duration_RBV
     $(PREFIX):ElapsedTime_RBV

...clipped...

Data type FB_MKS422
-------------------

     $(PREFIX):AT_VAC_RBV
     $(PREFIX):DISC_ACTIVE_RBV
     $(PREFIX):HV_DIS_DO_RBV
     $(PREFIX):HV_ON_RBV
     $(PREFIX):HV_SW
     $(PREFIX):HV_SW_RBV
     $(PREFIX):ILK_OK_RBV
     $(PREFIX):LOGGER_RBV
     $(PREFIX):PRESS_AI_RBV
     $(PREFIX):PRESS_OK_RBV
     $(PREFIX):PRESS_RBV
     $(PREFIX):PRO_SP
     $(PREFIX):PRO_SP_RBV
     $(PREFIX):SP_HYS
     $(PREFIX):SP_HYS_RBV
     $(PREFIX):STATE_RBV
     $(PREFIX):VAC_SP
     $(PREFIX):VAC_SP_RBV
klauer commented 4 years ago

This information will also go in the ads-deploy documentation, once it's available from pytmc.

klauer commented 4 years ago

(Tests now passing after an external update to pcds-ci-helpers)

ZLLentz commented 4 years ago

I think this looks good. I'm going to run it on a couple libraries and other projects and see what it outputs.

klauer commented 4 years ago

Thanks for giving it a go, @ZLLentz. I expect the spammy output will be less bad when merged into the generated docs website, but we'll see...

klauer commented 4 years ago

Fixed a few things to make it less verbose, even here. Tests are passing and this code is covered.

Onto the ads-deploy PR...