ssl-hep / ServiceX_frontend

Client access library for ServiceX
https://servicex-frontend.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
5 stars 11 forks source link

`OutputFormatEnum` and `DeliveryEnum` are not exposed to the library user #449

Closed gordonwatts closed 1 month ago

gordonwatts commented 2 months ago

Currently, you can't easily do something like:

        General=sx.General(
            Codegen=query[1],
            OutputFormat=sx.OutputFormatEnum.root_ttree,  # Fails with error
            Delivery=(DeliveryEnum.LocalCache if download else sx.DeliveryEnum.URLs),  # type: ignore
        ),

because it isn't exported from the top level. Rather you must delve quite deep into the object hierarchy. They should be exported at the top level (the way ResultFormat and ResultDesitnation were previosly.