Skip to content

Commit

Permalink
feat: 🎨 Add plotly charts (#36)
Browse files Browse the repository at this point in the history
* feat: 🎨 Add `plotly` charts

* feat: 🎉 Add interactive plots
  • Loading branch information
Anselmoo authored Mar 15, 2023
1 parent e122255 commit 817a715
Show file tree
Hide file tree
Showing 40 changed files with 14,637 additions and 59 deletions.
47 changes: 40 additions & 7 deletions poetry.lock

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

8 changes: 6 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ classifiers = [
"Topic :: Scientific/Engineering :: Physics",
"Topic :: Utilities",
]
include = ["LICENSE", "example/**"]
exclude = ["test/**/*.py"]
include = ["LICENSE", "ts-diagrams/**"]
exclude = ["test/**/*.py", "example/**"]

[tool.poetry.dependencies]
python = ">=3.8.1,<4.0"
pandas = "^1.2.4"
numpy = "^1.20.3"
matplotlib = "^3.4.2"
prettytable = "^2.1.0"
plotly = { version = "^5.13.1", optional = true }

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.0"
Expand All @@ -60,3 +61,6 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry.scripts]
tanabesugano = "tanabesugano.cmd:cmd_line"

[tool.poetry.extras]
plotly = ["plotly"]
9 changes: 8 additions & 1 deletion tanabesugano/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@


class Batch:
def __init__(self, Dq: List[float] = None, B: List[float] = None, C: List[float] = None, d_count: int = 5, slater: bool = False):
def __init__(
self,
Dq: List[float] = None,
B: List[float] = None,
C: List[float] = None,
d_count: int = 5,
slater: bool = False,
):
if Dq is None:
Dq = [4000.0, 4500.0, 10]
if B is None:
Expand Down
Loading

0 comments on commit 817a715

Please sign in to comment.