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

Add type annotations to Custom_Colours.py & graph.py #62

Merged
merged 36 commits into from
Oct 16, 2019
Merged

Add type annotations to Custom_Colours.py & graph.py #62

merged 36 commits into from
Oct 16, 2019

Conversation

Artyko
Copy link
Contributor

@Artyko Artyko commented Oct 12, 2019

#55

@Artyko
Copy link
Contributor Author

Artyko commented Oct 12, 2019

🐛 I found a bug in colour_cycle function with 'rainbow' parameter. It raises ValueError, beacause 'Magenta' doesn't match anything in Colours.txt.

colour_cycle(rainbow)-->colours('Magenta')-->
re.fullmatch('magenta', 'magenta / fuchsia') == None-->raise ValueError

Check it please, maybe I'm wrong?

@dalonsoa
Copy link
Collaborator

You're absolutely right, there is a bug. Thanks for pointing it out!

Please, replace line 88 in Colours.txt:

magenta / fuchsia = #FF00FF

by the following two lines:

magenta = #FF00FF
fuchsia = #FF00FF

PieceMaker and others added 28 commits October 14, 2019 21:26
Added Absorption_profile_AlGaAs_GaAs_structure example in jupyter notebook
Changed the explanation text to be in the same paragraph
…ion was (correctly) amended to multiply a relative permittivity by the vacuum permittivity. However, this broke some examples, which have now been amended (including in the documentation) but setting the relative_permittivity instead of the permittivity.
@Artyko
Copy link
Contributor Author

Artyko commented Oct 14, 2019

Oops, apparently, I did not quite understand, what I did with force-pushed

Copy link
Collaborator

@dalonsoa dalonsoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks cool! Just a couple of changes. The forced pushed does not seems to have caused much trouble.

solcore/graphing/Custom_Colours.py Outdated Show resolved Hide resolved
solcore/graphing/Custom_Colours.py Outdated Show resolved Hide resolved
@Artyko Artyko changed the title Add type annotations to Custom_Colours.py Add type annotations to Custom_Colours.py & graph.py Oct 15, 2019
@dalonsoa dalonsoa merged commit 46e2ef1 into qpv-research-group:devel Oct 16, 2019
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.

9 participants