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

Vary current and temperature in "parameter comparison" #61

Merged
merged 10 commits into from
Aug 16, 2021

Conversation

Saransh-cpp
Copy link
Member

@Saransh-cpp Saransh-cpp commented Aug 11, 2021

Closes #57
Closes #62

Changes / Additions

  • Now that "Ambient temperature [K]" is being varied in every comparison and "Current function [A]" is being varied in all non-experiment comparisons, it made sense to generate them in config_generator rather than in ComparisonGenerator.
  • ComparisonGenerator now accepts params which also removes the need of reply_overrides as the values are already varied in params.
  • Added required parameters in the tweet_text to go with these changes.
  • Removed "Ambient temperature [K]" and "Current function [A]" from param_to_vary_dict as now they are varied in all the cases.

@codecov
Copy link

codecov bot commented Aug 11, 2021

Codecov Report

Merging #61 (befa57c) into main (222ecce) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #61   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           19        19           
  Lines          603       591   -12     
=========================================
- Hits           603       591   -12     
Impacted Files Coverage Δ
bot/plotting/create_gif.py 100.00% <ø> (ø)
bot/plotting/random_plot_generator.py 100.00% <ø> (ø)
bot/plotting/comparison_generator.py 100.00% <100.00%> (ø)
bot/plotting/config_generator.py 100.00% <100.00%> (ø)
bot/twitter_api/tweet_plot.py 100.00% <100.00%> (ø)
bot/twitter_api/tweet_reply.py 100.00% <100.00%> (ø)
bot/utils/tweet_text_generator.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 459e794...befa57c. Read the comment docs.

Copy link
Collaborator

@rtimms rtimms left a comment

Choose a reason for hiding this comment

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

looks good, thanks @Saransh-cpp !

REQUEST_EXAMPLES.md Outdated Show resolved Hide resolved
@Saransh-cpp Saransh-cpp added the bug Something isn't working label Aug 12, 2021
@Saransh-cpp
Copy link
Member Author

Now if the GIF has a size > 15728640, the bot goes ahead to create another one. Resizing the GIF more would have brought down the quality which would have made the GIF hazy.

@Saransh-cpp Saransh-cpp requested a review from rtimms August 12, 2021 15:53
@rtimms
Copy link
Collaborator

rtimms commented Aug 13, 2021

What do you mean by it creates another GIF? As in it does a new simulation in hope of the resulting GIF being smaller?

@Saransh-cpp
Copy link
Member Author

Now it resizes the GIF again if the API gives an error

@Saransh-cpp Saransh-cpp merged commit 964a9d8 into main Aug 16, 2021
@Saransh-cpp Saransh-cpp deleted the issue-57-vary-current-and-temp-always branch August 18, 2021 12:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request GSOC21: Twitter Bot
Projects
None yet
2 participants