Skip to content

Commit

Permalink
Change package name; minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nx10 committed Sep 20, 2024
1 parent 6736d2e commit a14bce9
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 19 deletions.
28 changes: 14 additions & 14 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tool.poetry]
name = "styx"
name = "styxcompiler"
version = "0.1.0"
description = "Boutiques code generator"
authors = ["Florian Rupprecht <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion src/styx/backend/python/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Python wrapper backend."""

from .core import to_python as to_python
from .core import styxdefs_compat as styxdefs_compat
from .core import to_python as to_python
7 changes: 5 additions & 2 deletions src/styx/backend/python/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def _compile_outputs_class(
if isinstance(sub_struct, ir.IList):
docs_append = "This is a list of outputs with the same length and order as the inputs."

input_types_human = ' or '.join([enquote(t, '`') for t in alt_input_types])
input_types_human = " or ".join([enquote(t, "`") for t in alt_input_types])
outputs_class.fields.append(
PyArg(
name=output_symbol,
Expand Down Expand Up @@ -401,7 +401,10 @@ def _py_get_val(
# Need to check for attr because some alts might have outputs others not.
# todo: think about alternative solutions
func.body.extend(
indent([f"{output_symbol}=" f"[i.outputs(execution) if hasattr(i, \"outputs\") else None for i in {output_symbol_resolved}]{opt},"])
indent([
f"{output_symbol}="
f'[i.outputs(execution) if hasattr(i, "outputs") else None for i in {output_symbol_resolved}]{opt},'
])
)
else:
o = f"{output_symbol_resolved}.outputs(execution)"
Expand Down
2 changes: 1 addition & 1 deletion src/styx/frontend/boutiques/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def _arg_elem_from_bt_elem(
param=dparam,
list_=dlist,
default_value_set_to_none=True,
resolve_parent=d.get("resolve-parent")
resolve_parent=d.get("resolve-parent"),
)

case InputTypePrimitive.Flag:
Expand Down

0 comments on commit a14bce9

Please sign in to comment.