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

Some cleanups #47

Merged
merged 23 commits into from
May 3, 2021
Merged

Some cleanups #47

merged 23 commits into from
May 3, 2021

Conversation

d70-t
Copy link
Collaborator

@d70-t d70-t commented Apr 26, 2021

This PR contains several individual commits which are intended to clean up the currently existing notebooks a bit. Some things which are included are:

  • %pylab inline is deprecated and should not be used. It is quite likely that I introduced this silly piece of code, I think it is time to get rid of it :-)
  • The above required some more changes to plotting code, I took this as a chance and created matplotlib stylesheets in /how_to_eurec4a/mplstyle. That way, plots should get a more common appearance. I'd suggest to update styles in these files as long as anyhow possible. Currently there are two files, the book which contains basic styles for all plots and wide which contains a wider figure aspect ratio which can occasionally be useful.
  • included the new HALO PositionAttitude data instead of BAHAMAS QL data
  • less unnecessary calls to load() to speed things up. (in general, one doesn't want to call this function)
  • some more small code and formatting changes

Copy link
Collaborator

@JuleRadtke JuleRadtke left a comment

Choose a reason for hiding this comment

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

Sieht super aus!!

d70-t added 16 commits April 27, 2021 17:55
This produces a better visual impression (i.e. an info-box) in the
generated book.
%pylab inline is deprecated and should not be used anymore.
This commit also introduces the use of matplotlib style sheets in stead
of individual plot styling, both to reduce the need for additional
imports (i.e. import matplotlib as mpl) and to harmonize the appearence
of plots thoughout the book.
Otherwise their caption is hard to find within the text and also the
table of contents would not work.
That way, the different spike behaviour should be simpler to interpret
visually.
In some places, data was loaded before subsetting which is generally
less efficient.
Using `.T` implicitly makes an assumption about the order of dimensions
in the source dataset. By changing this to `.transpose` we can
explicitly note out intended outcome, which makes the scripts more
reliable.
Copy link
Collaborator

@tmieslinger tmieslinger left a comment

Choose a reason for hiding this comment

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

Those are many small but useful corrections! Thanks.
I have some minor comments / corrections / questions here and there. I like the consistent figure style :)

@RobertPincus RobertPincus mentioned this pull request Apr 30, 2021
d70-t and others added 7 commits April 30, 2021 18:40
Co-authored-by: Theresa Mieslinger <41184617+tmieslinger@users.noreply.github.com>
Co-authored-by: Theresa Mieslinger <41184617+tmieslinger@users.noreply.github.com>
Note: the bibtex entry needs to be updated, once the paper has been
submitted / accepted etc...
@tmieslinger tmieslinger merged commit fb6b5ae into eurec4a:master May 3, 2021
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.

3 participants