-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
85 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# import sys | ||
# import click | ||
|
||
# @click.group() | ||
# @click.version_option("0.1.1") | ||
# def main(): | ||
# """A Lumped Parameters LC matching networks CLI solver. | ||
|
||
# urbanij.github.io/projects/matching_networks/ | ||
|
||
# urbanij.github.io/syRF | ||
# """ | ||
# print("Hye") | ||
# pass | ||
|
||
|
||
import click | ||
import matching_network as mn | ||
|
||
|
||
@click.command() | ||
# @click.argument('keyword', required=False) | ||
@click.option('--from', '-f', 'from_', required=True, type=complex) | ||
@click.option('--to', '-t', 'to', required=True, type=complex) | ||
@click.option('--frequency', '--freq', 'frequency', required=False, type=float) | ||
def cli(from_, to, frequency): | ||
print( | ||
mn.L_section_matching( | ||
input_impedance=from_, | ||
output_impedance=to, | ||
frequency=frequency | ||
).match() | ||
) | ||
|
||
cli() |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,26 @@ | ||
[tool.poetry] | ||
name = "matching_network" | ||
version = "0.1.0" | ||
version = "0.1.5" | ||
description = 'Design lumped-parameters matching networks (L-sections)' | ||
license = "MIT" | ||
readme = "README.md" | ||
homepage = "https://pypi.org/project/matching-network/" | ||
repository = "https://github.com/urbanij/matching-network" | ||
# documentation = "https://github.com/urbanij/matching-network" | ||
keywords = ["matching networks", "l-section-matching", "lumped-parameters-matching"] | ||
keywords = ["matching network", "matching networks", "l-section-matching", "lumped-parameters-matching"] | ||
authors = ["Francesco Urbani <[email protected]>"] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.6" | ||
quantiphy = "^2.13.0" | ||
click = "^7.1.2" | ||
|
||
[tool.poetry.dev-dependencies] | ||
pytest = "^5.2" | ||
|
||
[build-system] | ||
requires = ["poetry>=0.12"] | ||
build-backend = "poetry.masonry.api" | ||
|
||
[tool.poetry.scripts] | ||
matching_network = "matching_network.__main__:cli" |