Skip to content

Commit

Permalink
Fixed bugs and deprecated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
YuXHe15 committed Oct 15, 2023
1 parent 64d8536 commit b31fb75
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
Binary file added .DS_Store
Binary file not shown.
4 changes: 3 additions & 1 deletion amworkflow/src/infrastructure/database/cruds/crud.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ def query_multi_data(table: str,
dd.pop("_sa_instance_state", None)
if target_column_name == None:
result = pd.DataFrame(result)
result.style.applymap(color_background)
# This line of code is deprecated informed by the author.
# result.style.applymap(color_background)
result.style.map(color_background)
# elif len(result) != 0:
# result = result[0]
return result
Expand Down
1 change: 0 additions & 1 deletion amworkflow/src/utils/parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import yaml
import os
import logging
from amworkflow.src.constants.enums import Directory as D
Expand Down
2 changes: 1 addition & 1 deletion dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def task_install():
cmd_list = []
aw, ocu = env_check()
if not ocu:
cmd_list.append("python -m pip install /amworkflow/dependencies/OCCUtils-0.1.dev0-py3-none-any.whl")
cmd_list.append("python -m pip install ./amworkflow/dependencies/OCCUtils-0.1.dev0-py3-none-any.whl")
cmd_list.append('echo occ-utils installed successfully.')
else:
cmd_list.append('echo occ-utils already installed.')
Expand Down
5 changes: 4 additions & 1 deletion environment_clean.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: amworkflow_clean
name: amworkflow
channels:
- conda-forge
- defaults
Expand All @@ -11,6 +11,8 @@ dependencies:
- fenics-dolfinx
- mpich
- pyvista
- doit
- tomlkit
- pip
- pip:
- gmsh==4.11.1
Expand All @@ -20,3 +22,4 @@ dependencies:
- sqlalchemy
- ruamel-yaml
- doit
- psutil
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ classifiers = [
license = {file = "LICENSE"}
keywords = ["AM concrete", "workflow", "CAD"]
dependencies = [
"gmsh>=4.11.1",
"networkx",
"sphinx",
"sqlalchemy",
"ruamel-yaml",
"doit"
]

[project.urls]
Expand Down
13 changes: 11 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,14 @@
license='MIT',
author='Yuxiang He',
author_email='[email protected]',
description=''
)
description='',
install_requires=[
"gmsh>=4.11.1",
"networkx",
"sphinx",
"sqlalchemy",
"ruamel-yaml",
"psutil",
"pyqt5"
]
)

0 comments on commit b31fb75

Please sign in to comment.