Skip to content

Commit

Permalink
Fixed pydantic, string2json docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
awicenec committed Mar 9, 2024
1 parent 6f2a955 commit 3bdf3bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion daliuge-common/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def do_versioning():
"gputil>=1.4.0",
"merklelib>=1.0",
"pyzmq~=25.1.0",
"pydantic~=1.10.7",
"pydantic==1.10.7",
]

setup(
Expand Down
3 changes: 2 additions & 1 deletion daliuge-engine/dlg/apps/simple_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,13 @@ def createMultiOut(v1: Any = 1, v2: Any = 7) -> tuple:
return out1, out2


def string2json(string: str, pickle_flag=False) -> json:
def string2json(string: str, pickle_flag: bool = False) -> list:
"""
Simple function to convert a string to a JSON object
Inputs:
string: string containing a JSON representation
pickle_flag: False, whether output should be pickled
"""
if not pickle_flag:
return json.loads(string)
Expand Down
2 changes: 1 addition & 1 deletion daliuge-translator/docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN . /dlg/bin/activate && \
pip3 install .

# Second stage build taking what's required from first stage
FROM icrar/daliuge-common:${VCS_TAG}
FROM icrar/daliuge-engine:${VCS_TAG}
COPY --from=0 /daliuge/. /daliuge/.
COPY --from=0 /dlg /dlg
# RUN apt-get update && apt-get install -y libmetis-dev python3
Expand Down

0 comments on commit 3bdf3bd

Please sign in to comment.