Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

latch get-params create wrong Enum names #479

Open
yuhanH opened this issue Jul 29, 2024 · 0 comments
Open

latch get-params create wrong Enum names #479

yuhanH opened this issue Jul 29, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yuhanH
Copy link

yuhanH commented Jul 29, 2024

This is a similar issue with #137
Specifically, I have defined an Enum object as follows:

class out_format(Enum):
    h5ad = "--h5ad"
    loom = "--loom"
    raw = "raw"

However, when using latch get-params, the command appears to redefine the Enum names as the same with the Enum values, resulting in an incorrect format name:

class out_format(Enum):
    --h5ad = '--h5ad'
    --loom = '--loom'
    raw = 'raw'

here is the line:

if variant in keyword.kwlist:
variant_name = f"_{variant}"
else:
variant_name = variant

It would be beneficial to retain the original Enum names. I am not certain if the original Enum names are stored, as they were not found in the response variable of the _launch_workflow function.
response = requests.post(url, headers=headers, json=_interface_request)

@yuhanH yuhanH added the bug Something isn't working label Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants