-
Notifications
You must be signed in to change notification settings - Fork 84
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
Migrate existing thermodynamic functions to metpy functions #1009
Migrate existing thermodynamic functions to metpy functions #1009
Conversation
functions to be replaced by metpy were removed
Co-Authored-By: J. Ungermann <[email protected]>
Good progress! Personally, I would do the calls to the metpy functions within the plotting classes (to be able to fully remove the thermolib.py file), but as an intermediate step it is probably better to follow your approach! |
I had a look at the probably last remaining actual error. This fixes it for me: index 9226e702..56ddc11c 100644
--- a/mslib/thermolib.py
+++ b/mslib/thermolib.py
@@ -177,23 +177,6 @@ def pot_temp(p, t):
return potential_temp
-def dewpoint(p, t, q):
- """
- Computes dewpoint temperature in [K] from pressure, temperature and specific humidity.
-
- Arguments:
- p -- pressure in [Pa]
- t -- temperature in [K]
- q -- specific humidity in [Kg/Kg]
-
- Returns: dewpoint temperature in [K]. Same dimensions as the inputs.
- """
- p = units.Quantity(p, "Pa")
- t = units.Quantity(t, "K")
- dew_temp = mpcalc.dewpoint_from_specific_humidity(p, t, q)
- return dew_temp.to('K')
-
-
def eqpt_approx(p, t, q):
"""
Computes equivalent potential temperature in [K] from pressure,
@@ -211,7 +194,7 @@ def eqpt_approx(p, t, q):
"""
p = units.Quantity(p, "Pa")
t = units.Quantity(t, "K")
- dew_temp = dewpoint(p, t, q)
+ dew_temp = mpcalc.dewpoint_from_specific_humidity(p, t, q)
eqpt_temp = mpcalc.equivalent_potential_temperature(p, t, dew_temp)
return eqpt_temp.to('degC')
The problem is the testless "addition" of units, which, in this case, added them twice (i.e. the units were "Pa Pa" instead of "Pa"). |
To generally circumvent this problem, I would suggest to "discard" the units upon returning the results by "return var.to("K").magnitude" instead of "return var.to("K")". |
Co-Authored-By: J. Ungermann <[email protected]>
@joernu76 I've made changes as per your suggestion and errors are also fixed but now it's throwing attribute error in should we also migrate omega_to_w function to metpy. PS: Also not migrating flightlevel2pressure and pressure2flightlevel functions to metpy as they were having issue after 11Km. |
The MSCOLAB test are, very sadly, not stable. Let's try rerunning them. We are working on that since quite some time, but have not yet understood the root cause for the behaviour as it seems to only occur on the github pipelines and not on our own computers. |
w.r.t. omega_to_w, yes, migrate it to metpy, please. |
Thanks for your help and guidance. |
…#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]>
* Allow specification of file for linear defaultstyle (#1028) * Allow specification of file for default * Simplify if condition * Increase coverage (#1020) * Add wms_control tests * Add more mscolab tests * Add mpl_qtwidget coverage * Add mss_pyui coverage * Add transparency, noframe and xml checks * Add more wms tests * Test import with plugins * Add linearview tests * Add more multilayering tests * Revert to old testing.yml * Leave no dangling windows * Remove todo, move ConnectionError to bottom Co-authored-by: ReimarBauer <[email protected]> * Migrate existing thermodynamic functions to metpy functions (#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]> * updated documentation (#1008) * updated documentation * improved install/update procedure Co-authored-by: Reimar Bauer <[email protected]> * Fixed: #999 (#1010) * .format replaced with f" string * updated copyright year * fixes #1014 (#1015) * Remove Qt imports (#1019) * Fixes #1014 changing http to https (#1017) Co-authored-by: ReimarBauer <[email protected]> * Linear view mscolab bug (#1021) * fixed tableview not opening bug; added test * added raising of mscolab window after closing view * preparation of v4.0.1 (#1023) * preparation of v4.0.1 * updated install instruction Co-authored-by: J. Ungermann <[email protected]> * Fix pyproj 3.1.0 error (#1033) * Minor bug fixes. (#1054) * Return proper unit for eq. potential temperature (degC->K) * Do not assume units of pressure levels for several old plotting styles. * Fix values of geopotential altitude in demodata * issue #719 solved (#729) * issue #719 solved * updated development.rst * updated development.rst Co-authored-by: ReimarBauer <[email protected]> * Select newest init-time and carry over multilayering (#1047) Co-authored-by: J. Ungermann <[email protected]> * Fix some issues with elevation caching and model level dimensions. (#1061) Fix #1066 * Added missing filename key. (#1062) See #1066 Co-authored-by: May <[email protected]> Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: Jatin Jain <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: open-mss-build <[email protected]> Co-authored-by: Aryan Gupta <[email protected]> Co-authored-by: Aravind Murali <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: Archishman Sengupta <[email protected]>
…oblems of being played too fast (#1067) * Allow specification of file for linear defaultstyle (#1028) * Allow specification of file for default * Simplify if condition * Increase coverage (#1020) * Add wms_control tests * Add more mscolab tests * Add mpl_qtwidget coverage * Add mss_pyui coverage * Add transparency, noframe and xml checks * Add more wms tests * Test import with plugins * Add linearview tests * Add more multilayering tests * Revert to old testing.yml * Leave no dangling windows * Remove todo, move ConnectionError to bottom Co-authored-by: ReimarBauer <[email protected]> * Migrate existing thermodynamic functions to metpy functions (#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]> * updated documentation (#1008) * updated documentation * improved install/update procedure Co-authored-by: Reimar Bauer <[email protected]> * Fixed: #999 (#1010) * .format replaced with f" string * updated copyright year * fixes #1014 (#1015) * Remove Qt imports (#1019) * Fixes #1014 changing http to https (#1017) Co-authored-by: ReimarBauer <[email protected]> * Linear view mscolab bug (#1021) * fixed tableview not opening bug; added test * added raising of mscolab window after closing view * preparation of v4.0.1 (#1023) * preparation of v4.0.1 * updated install instruction Co-authored-by: J. Ungermann <[email protected]> * Fix pyproj 3.1.0 error (#1033) * Made a screen recorder and automated tutorial for demonstrating use of waypoints * Renamed tut pictures to just pictures and moved the tutorials.txt to requirements.d * Minor bug fixes. (#1054) * Return proper unit for eq. potential temperature (degC->K) * Do not assume units of pressure levels for several old plotting styles. * Fix values of geopotential altitude in demodata * issue #719 solved (#729) * issue #719 solved * updated development.rst * updated development.rst Co-authored-by: ReimarBauer <[email protected]> * Select newest init-time and carry over multilayering (#1047) Co-authored-by: J. Ungermann <[email protected]> * Fix some issues with elevation caching and model level dimensions. (#1061) Fix #1066 * Added missing filename key. (#1062) See #1066 * Waypoints tutorial completed * Just changed the sleep timings of the code to make it more efficient : tutorial_waypoints.py * Added the updated tutorials.txt in requirements.d Co-authored-by: May <[email protected]> Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: Jatin Jain <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: open-mss-build <[email protected]> Co-authored-by: Aryan Gupta <[email protected]> Co-authored-by: Aravind Murali <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: Archishman Sengupta <[email protected]>
commit 3bd614e Merge: c8b662b 094c388 Author: ReimarBauer <[email protected]> Date: Mon Aug 23 16:35:23 2021 +0200 Merge pull request #1170 from risehr/textfiles Added text files for kml, mscolab, wms, and views tutorials. commit 094c388 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 19:21:46 2021 +0530 Corrected spelling of MSColab commit 83551be Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 17:35:37 2021 +0530 Added text files for kml, mscolab, wms, and views tutorials and fixed typos in tutorials.rst file commit c8b662b Merge: ee98974 3937b0a Author: ReimarBauer <[email protected]> Date: Mon Aug 23 07:41:44 2021 +0200 Merge pull request #1166 from risehr/documentation Created the tutorials.rst file commit 3937b0a Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 02:32:17 2021 +0530 Fixed typos in performance settings text file commit 156fa36 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 02:22:41 2021 +0530 Added performance settings text file in tutorials/textfiles commit 6acc89e Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 01:49:05 2021 +0530 Fixed typos in text files commit f681c0f Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 01:18:54 2021 +0530 Updated tutorials.rst file and added some text files commit 0417b04 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 00:29:08 2021 +0530 Created the tutorials.rst file commit ee98974 Author: Hrithik Kumar Verma <[email protected]> Date: Sat Aug 21 13:59:43 2021 +0530 Mscolab tutorial, TTS feature for audios (#1162) * mscolab tutorial created * Created mscolab tutorial and added text to audio conversion feature for audio of the tutorial videos. Also updated tutorials.txt requirement file * Made some minor code improvements and rectified spelling mistakes * Made audio.py more customizable in terms of which translation and speech conversion APIs are to be used and also updated tutorials.txt requirement file * Removed the unnecessary comments commit df9aa18 Author: Hrithik Kumar Verma <[email protected]> Date: Tue Aug 17 14:11:38 2021 +0530 KML overlay, Hexagon Control, Performance settings tutorial completed (#1144) * Kml, hexagon control, and performance settings tutorial completed * Improved the screenrecorder class fixing some bugs, improved restricted size recording of windows * Minor changes in screen recorder class * made small changes in the header files of scipt and other minor changes in hexagon tutorial * Made the code more efficient by small changes in hexagon control tutorial commit bd3f251 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 9 18:55:26 2021 +0530 Remote Sensing and Satellite Track Tutorial (#1136) * Tutorial for remote sensing and satellite track and flexible/changeable screen recording area * Enabled FailSafe from screenrecorder.py file commit 5f70c3a Merge: 9170617 769b98a Author: ReimarBauer <[email protected]> Date: Fri Aug 6 16:58:51 2021 +0200 Merge pull request #1140 from Open-MSS/merged_develop_to_GSOC2021-HrithikKumarVerma Merged develop to gsoc2021 hrithik kumar verma commit 769b98a Author: ReimarBauer <[email protected]> Date: Fri Aug 6 16:25:42 2021 +0200 merge mistake fixed commit 7fd3765 Merge: 9170617 492482f Author: ReimarBauer <[email protected]> Date: Fri Aug 6 16:16:53 2021 +0200 Merge branch 'develop' into GSOC2021-HrithikKumarVerma commit 9170617 Merge: 6ab5a9d 36834c2 Author: ReimarBauer <[email protected]> Date: Wed Aug 4 09:28:13 2021 +0200 Merge pull request #1104 from risehr/views_tutorial [Completed] Automated tutorial for how to create a project in MSS using all the views. commit 36834c2 Author: Hrithik Kumar Verma <[email protected]> Date: Sun Aug 1 00:54:27 2021 +0530 Rectified some small mistakes such as remove extra space and unnecessary comments commit 41e83e1 Author: Hrithik Kumar Verma <[email protected]> Date: Sat Jul 31 02:51:43 2021 +0530 Made tutorial_views.py script to work for linux smoothly commit 0fee992 Author: Hrithik Kumar Verma <[email protected]> Date: Wed Jul 28 16:09:08 2021 +0530 Automated tutorial for how to create a project in MSS using all the views commit 6ab5a9d Author: Hrithik Kumar Verma <[email protected]> Date: Sun Jul 18 10:57:40 2021 +0530 Wms tutorial (#1083) * Made cursor visible and finished wms automated tutorial * flake8 corrections * Improved code for use in Linux systems.(It was working well in other systems) * Changed header file for the python scripts in mss/tutorials/* commit 3bb422c Merge: 2eda795 84ef56d Author: ReimarBauer <[email protected]> Date: Wed Jul 7 12:02:14 2021 +0200 Merge pull request #1074 from risehr/waypoints_tutorial Waypoints Tutorial : Working on Linux system now. commit 84ef56d Author: Hrithik Kumar Verma <[email protected]> Date: Mon Jul 5 21:08:40 2021 +0530 Rectified logical error in if statement; improved code to run both on linux and windows system efficiently commit 89d1417 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Jul 5 18:45:50 2021 +0530 Modified waypoints tutorial to make it run smoothly on linux systems commit 2eda795 Author: Hrithik Kumar Verma <[email protected]> Date: Fri Jul 2 14:24:53 2021 +0530 Completed the waypoints tutorial and resolved the screen recording problems of being played too fast (#1067) * Allow specification of file for linear defaultstyle (#1028) * Allow specification of file for default * Simplify if condition * Increase coverage (#1020) * Add wms_control tests * Add more mscolab tests * Add mpl_qtwidget coverage * Add mss_pyui coverage * Add transparency, noframe and xml checks * Add more wms tests * Test import with plugins * Add linearview tests * Add more multilayering tests * Revert to old testing.yml * Leave no dangling windows * Remove todo, move ConnectionError to bottom Co-authored-by: ReimarBauer <[email protected]> * Migrate existing thermodynamic functions to metpy functions (#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]> * updated documentation (#1008) * updated documentation * improved install/update procedure Co-authored-by: Reimar Bauer <[email protected]> * Fixed: #999 (#1010) * .format replaced with f" string * updated copyright year * fixes #1014 (#1015) * Remove Qt imports (#1019) * Fixes #1014 changing http to https (#1017) Co-authored-by: ReimarBauer <[email protected]> * Linear view mscolab bug (#1021) * fixed tableview not opening bug; added test * added raising of mscolab window after closing view * preparation of v4.0.1 (#1023) * preparation of v4.0.1 * updated install instruction Co-authored-by: J. Ungermann <[email protected]> * Fix pyproj 3.1.0 error (#1033) * Made a screen recorder and automated tutorial for demonstrating use of waypoints * Renamed tut pictures to just pictures and moved the tutorials.txt to requirements.d * Minor bug fixes. (#1054) * Return proper unit for eq. potential temperature (degC->K) * Do not assume units of pressure levels for several old plotting styles. * Fix values of geopotential altitude in demodata * issue #719 solved (#729) * issue #719 solved * updated development.rst * updated development.rst Co-authored-by: ReimarBauer <[email protected]> * Select newest init-time and carry over multilayering (#1047) Co-authored-by: J. Ungermann <[email protected]> * Fix some issues with elevation caching and model level dimensions. (#1061) Fix #1066 * Added missing filename key. (#1062) See #1066 * Waypoints tutorial completed * Just changed the sleep timings of the code to make it more efficient : tutorial_waypoints.py * Added the updated tutorials.txt in requirements.d Co-authored-by: May <[email protected]> Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: Jatin Jain <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: open-mss-build <[email protected]> Co-authored-by: Aryan Gupta <[email protected]> Co-authored-by: Aravind Murali <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: Archishman Sengupta <[email protected]> commit fca444a Author: Hrithik Kumar Verma <[email protected]> Date: Thu Jul 1 14:49:02 2021 +0530 Syncing my GSOC branch with develop (#1066) * Allow specification of file for linear defaultstyle (#1028) * Allow specification of file for default * Simplify if condition * Increase coverage (#1020) * Add wms_control tests * Add more mscolab tests * Add mpl_qtwidget coverage * Add mss_pyui coverage * Add transparency, noframe and xml checks * Add more wms tests * Test import with plugins * Add linearview tests * Add more multilayering tests * Revert to old testing.yml * Leave no dangling windows * Remove todo, move ConnectionError to bottom Co-authored-by: ReimarBauer <[email protected]> * Migrate existing thermodynamic functions to metpy functions (#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]> * updated documentation (#1008) * updated documentation * improved install/update procedure Co-authored-by: Reimar Bauer <[email protected]> * Fixed: #999 (#1010) * .format replaced with f" string * updated copyright year * fixes #1014 (#1015) * Remove Qt imports (#1019) * Fixes #1014 changing http to https (#1017) Co-authored-by: ReimarBauer <[email protected]> * Linear view mscolab bug (#1021) * fixed tableview not opening bug; added test * added raising of mscolab window after closing view * preparation of v4.0.1 (#1023) * preparation of v4.0.1 * updated install instruction Co-authored-by: J. Ungermann <[email protected]> * Fix pyproj 3.1.0 error (#1033) * Minor bug fixes. (#1054) * Return proper unit for eq. potential temperature (degC->K) * Do not assume units of pressure levels for several old plotting styles. * Fix values of geopotential altitude in demodata * issue #719 solved (#729) * issue #719 solved * updated development.rst * updated development.rst Co-authored-by: ReimarBauer <[email protected]> * Select newest init-time and carry over multilayering (#1047) Co-authored-by: J. Ungermann <[email protected]> * Fix some issues with elevation caching and model level dimensions. (#1061) Fix #1066 * Added missing filename key. (#1062) See #1066 Co-authored-by: May <[email protected]> Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: Jatin Jain <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: open-mss-build <[email protected]> Co-authored-by: Aryan Gupta <[email protected]> Co-authored-by: Aravind Murali <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: Archishman Sengupta <[email protected]>
commit 3bd614e Merge: c8b662b 094c388 Author: ReimarBauer <[email protected]> Date: Mon Aug 23 16:35:23 2021 +0200 Merge pull request #1170 from risehr/textfiles Added text files for kml, mscolab, wms, and views tutorials. commit 094c388 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 19:21:46 2021 +0530 Corrected spelling of MSColab commit 83551be Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 17:35:37 2021 +0530 Added text files for kml, mscolab, wms, and views tutorials and fixed typos in tutorials.rst file commit c8b662b Merge: ee98974 3937b0a Author: ReimarBauer <[email protected]> Date: Mon Aug 23 07:41:44 2021 +0200 Merge pull request #1166 from risehr/documentation Created the tutorials.rst file commit 3937b0a Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 02:32:17 2021 +0530 Fixed typos in performance settings text file commit 156fa36 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 02:22:41 2021 +0530 Added performance settings text file in tutorials/textfiles commit 6acc89e Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 01:49:05 2021 +0530 Fixed typos in text files commit f681c0f Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 01:18:54 2021 +0530 Updated tutorials.rst file and added some text files commit 0417b04 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 23 00:29:08 2021 +0530 Created the tutorials.rst file commit ee98974 Author: Hrithik Kumar Verma <[email protected]> Date: Sat Aug 21 13:59:43 2021 +0530 Mscolab tutorial, TTS feature for audios (#1162) * mscolab tutorial created * Created mscolab tutorial and added text to audio conversion feature for audio of the tutorial videos. Also updated tutorials.txt requirement file * Made some minor code improvements and rectified spelling mistakes * Made audio.py more customizable in terms of which translation and speech conversion APIs are to be used and also updated tutorials.txt requirement file * Removed the unnecessary comments commit df9aa18 Author: Hrithik Kumar Verma <[email protected]> Date: Tue Aug 17 14:11:38 2021 +0530 KML overlay, Hexagon Control, Performance settings tutorial completed (#1144) * Kml, hexagon control, and performance settings tutorial completed * Improved the screenrecorder class fixing some bugs, improved restricted size recording of windows * Minor changes in screen recorder class * made small changes in the header files of scipt and other minor changes in hexagon tutorial * Made the code more efficient by small changes in hexagon control tutorial commit bd3f251 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Aug 9 18:55:26 2021 +0530 Remote Sensing and Satellite Track Tutorial (#1136) * Tutorial for remote sensing and satellite track and flexible/changeable screen recording area * Enabled FailSafe from screenrecorder.py file commit 5f70c3a Merge: 9170617 769b98a Author: ReimarBauer <[email protected]> Date: Fri Aug 6 16:58:51 2021 +0200 Merge pull request #1140 from Open-MSS/merged_develop_to_GSOC2021-HrithikKumarVerma Merged develop to gsoc2021 hrithik kumar verma commit 769b98a Author: ReimarBauer <[email protected]> Date: Fri Aug 6 16:25:42 2021 +0200 merge mistake fixed commit 7fd3765 Merge: 9170617 492482f Author: ReimarBauer <[email protected]> Date: Fri Aug 6 16:16:53 2021 +0200 Merge branch 'develop' into GSOC2021-HrithikKumarVerma commit 9170617 Merge: 6ab5a9d 36834c2 Author: ReimarBauer <[email protected]> Date: Wed Aug 4 09:28:13 2021 +0200 Merge pull request #1104 from risehr/views_tutorial [Completed] Automated tutorial for how to create a project in MSS using all the views. commit 36834c2 Author: Hrithik Kumar Verma <[email protected]> Date: Sun Aug 1 00:54:27 2021 +0530 Rectified some small mistakes such as remove extra space and unnecessary comments commit 41e83e1 Author: Hrithik Kumar Verma <[email protected]> Date: Sat Jul 31 02:51:43 2021 +0530 Made tutorial_views.py script to work for linux smoothly commit 0fee992 Author: Hrithik Kumar Verma <[email protected]> Date: Wed Jul 28 16:09:08 2021 +0530 Automated tutorial for how to create a project in MSS using all the views commit 6ab5a9d Author: Hrithik Kumar Verma <[email protected]> Date: Sun Jul 18 10:57:40 2021 +0530 Wms tutorial (#1083) * Made cursor visible and finished wms automated tutorial * flake8 corrections * Improved code for use in Linux systems.(It was working well in other systems) * Changed header file for the python scripts in mss/tutorials/* commit 3bb422c Merge: 2eda795 84ef56d Author: ReimarBauer <[email protected]> Date: Wed Jul 7 12:02:14 2021 +0200 Merge pull request #1074 from risehr/waypoints_tutorial Waypoints Tutorial : Working on Linux system now. commit 84ef56d Author: Hrithik Kumar Verma <[email protected]> Date: Mon Jul 5 21:08:40 2021 +0530 Rectified logical error in if statement; improved code to run both on linux and windows system efficiently commit 89d1417 Author: Hrithik Kumar Verma <[email protected]> Date: Mon Jul 5 18:45:50 2021 +0530 Modified waypoints tutorial to make it run smoothly on linux systems commit 2eda795 Author: Hrithik Kumar Verma <[email protected]> Date: Fri Jul 2 14:24:53 2021 +0530 Completed the waypoints tutorial and resolved the screen recording problems of being played too fast (#1067) * Allow specification of file for linear defaultstyle (#1028) * Allow specification of file for default * Simplify if condition * Increase coverage (#1020) * Add wms_control tests * Add more mscolab tests * Add mpl_qtwidget coverage * Add mss_pyui coverage * Add transparency, noframe and xml checks * Add more wms tests * Test import with plugins * Add linearview tests * Add more multilayering tests * Revert to old testing.yml * Leave no dangling windows * Remove todo, move ConnectionError to bottom Co-authored-by: ReimarBauer <[email protected]> * Migrate existing thermodynamic functions to metpy functions (#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]> * updated documentation (#1008) * updated documentation * improved install/update procedure Co-authored-by: Reimar Bauer <[email protected]> * Fixed: #999 (#1010) * .format replaced with f" string * updated copyright year * fixes #1014 (#1015) * Remove Qt imports (#1019) * Fixes #1014 changing http to https (#1017) Co-authored-by: ReimarBauer <[email protected]> * Linear view mscolab bug (#1021) * fixed tableview not opening bug; added test * added raising of mscolab window after closing view * preparation of v4.0.1 (#1023) * preparation of v4.0.1 * updated install instruction Co-authored-by: J. Ungermann <[email protected]> * Fix pyproj 3.1.0 error (#1033) * Made a screen recorder and automated tutorial for demonstrating use of waypoints * Renamed tut pictures to just pictures and moved the tutorials.txt to requirements.d * Minor bug fixes. (#1054) * Return proper unit for eq. potential temperature (degC->K) * Do not assume units of pressure levels for several old plotting styles. * Fix values of geopotential altitude in demodata * issue #719 solved (#729) * issue #719 solved * updated development.rst * updated development.rst Co-authored-by: ReimarBauer <[email protected]> * Select newest init-time and carry over multilayering (#1047) Co-authored-by: J. Ungermann <[email protected]> * Fix some issues with elevation caching and model level dimensions. (#1061) Fix #1066 * Added missing filename key. (#1062) See #1066 * Waypoints tutorial completed * Just changed the sleep timings of the code to make it more efficient : tutorial_waypoints.py * Added the updated tutorials.txt in requirements.d Co-authored-by: May <[email protected]> Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: Jatin Jain <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: open-mss-build <[email protected]> Co-authored-by: Aryan Gupta <[email protected]> Co-authored-by: Aravind Murali <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: Archishman Sengupta <[email protected]> commit fca444a Author: Hrithik Kumar Verma <[email protected]> Date: Thu Jul 1 14:49:02 2021 +0530 Syncing my GSOC branch with develop (#1066) * Allow specification of file for linear defaultstyle (#1028) * Allow specification of file for default * Simplify if condition * Increase coverage (#1020) * Add wms_control tests * Add more mscolab tests * Add mpl_qtwidget coverage * Add mss_pyui coverage * Add transparency, noframe and xml checks * Add more wms tests * Test import with plugins * Add linearview tests * Add more multilayering tests * Revert to old testing.yml * Leave no dangling windows * Remove todo, move ConnectionError to bottom Co-authored-by: ReimarBauer <[email protected]> * Migrate existing thermodynamic functions to metpy functions (#1009) * removed functions from thermolib.py functions to be replaced by metpy were removed * fixed: flake8 * fixed: flake8 * migrated to metpy functions Co-Authored-By: J. Ungermann <[email protected]> * Fixed: flake8 * Fixed: flake8 * Fixed tests * Fixed: flake8 * Fixed: failing tests * Ficed: tests * Units discarded upon returning results Co-Authored-By: J. Ungermann <[email protected]> * `omega_to_w` migrated to metpy Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: J. Ungermann <[email protected]> * updated documentation (#1008) * updated documentation * improved install/update procedure Co-authored-by: Reimar Bauer <[email protected]> * Fixed: #999 (#1010) * .format replaced with f" string * updated copyright year * fixes #1014 (#1015) * Remove Qt imports (#1019) * Fixes #1014 changing http to https (#1017) Co-authored-by: ReimarBauer <[email protected]> * Linear view mscolab bug (#1021) * fixed tableview not opening bug; added test * added raising of mscolab window after closing view * preparation of v4.0.1 (#1023) * preparation of v4.0.1 * updated install instruction Co-authored-by: J. Ungermann <[email protected]> * Fix pyproj 3.1.0 error (#1033) * Minor bug fixes. (#1054) * Return proper unit for eq. potential temperature (degC->K) * Do not assume units of pressure levels for several old plotting styles. * Fix values of geopotential altitude in demodata * issue #719 solved (#729) * issue #719 solved * updated development.rst * updated development.rst Co-authored-by: ReimarBauer <[email protected]> * Select newest init-time and carry over multilayering (#1047) Co-authored-by: J. Ungermann <[email protected]> * Fix some issues with elevation caching and model level dimensions. (#1061) Fix #1066 * Added missing filename key. (#1062) See #1066 Co-authored-by: May <[email protected]> Co-authored-by: ReimarBauer <[email protected]> Co-authored-by: Jatin Jain <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: open-mss-build <[email protected]> Co-authored-by: Aryan Gupta <[email protected]> Co-authored-by: Aravind Murali <[email protected]> Co-authored-by: J. Ungermann <[email protected]> Co-authored-by: Archishman Sengupta <[email protected]>
Fixes: #1004