Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added methods to quickly generate common series #25

Merged
merged 5 commits into from
Mar 18, 2024

Conversation

Fish-in-a-Barrel
Copy link
Contributor

Added constants for the common resistor values series, E12 and E24.

Added methods generate_decade and generate_decades which scale those series by powers of 10 and create 2D arrays of values.

Updated the comments and examples.

LabelGenerator.py Outdated Show resolved Hide resolved
LabelGenerator.py Outdated Show resolved Hide resolved
LabelGenerator.py Outdated Show resolved Hide resolved
LabelGenerator.py Outdated Show resolved Hide resolved
@Finomnis
Copy link
Owner

I like it. Thanks for your contribution :)

@Finomnis
Copy link
Owner

If you make the linters happy, I'll merge :)

@Fish-in-a-Barrel
Copy link
Contributor Author

Ah, that's what's failing!

I'm not that familiar with this pipeline. :D

@Finomnis
Copy link
Owner

Ah, that's what's failing!

I'm not that familiar with this pipeline. :D

If you click on "details" next to the failed ones, you will see explanations. If you don't manage to fix it, tell me, then I'll fix it for you.

@Finomnis
Copy link
Owner

Finomnis commented Mar 17, 2024

The linters you need to satisfy are mypy and flake8. flake8 should be satisfied if you run the autopep8 formatter on the code.

LabelGenerator.py Outdated Show resolved Hide resolved
@Finomnis Finomnis merged commit cde1afc into Finomnis:main Mar 18, 2024
15 checks passed
@Finomnis
Copy link
Owner

Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants