Git Product home page Git Product logo

Comments (4)

JeauxyPatton avatar JeauxyPatton commented on July 21, 2024

I am also experiencing this same issue with a fresh install in a new conda environment. Also running Windows 11, and I'm also getting the error message about updating the v1.4.0 although I have already installed that version. Can't open any soundings from any source and it immediately crashes the program. Thought I was going crazy!

from sharppy.

keltonhalbert avatar keltonhalbert commented on July 21, 2024

Hi Ian and Joey, sorry about the issues! Looks like you aren't the only ones, something in Qt isn't behaving nicely with bold fonts. The good news, is that it's an easy fix. The bad news, is that for right now, it requires a manual fix.

If you go to line 277 of sharppy/viz/winter.py, you should see this:

    def drawPrecipType(self, qp):
        big = QtGui.QFont('Helvetica', round(self.hgt * self.font_ratio) + 5, bold=True)

Remove the bold=True argument such that it looks like this:

    def drawPrecipType(self, qp):
        big = QtGui.QFont('Helvetica', round(self.hgt * self.font_ratio) + 5)

Not exactly elegant until we can push the fix to the master branch, but it should work. In your case Ian, the file is located at C:\Users\IanCornejo\anaconda3\envs\sharppy\viz\winter.py

from sharppy.

resmaili avatar resmaili commented on July 21, 2024

Yeah, agreed, this fixed the issue when I reproduced the error in a Windows 11 WM. I'm working on pushing the changes. In the meantime you can use Kelton's fix. You can also turn off the 'newer version of SHARPpy is available.' by commenting out ln 1208-1219 in python setup.py install in runsharp/full_gui.py.

from sharppy.

iancornejo avatar iancornejo commented on July 21, 2024

Thank you both. Adding onto Kelton's response and for future viewers of this thread, you also need to remove "bold = False" in line 288 of winter.py.

From:
small = QtGui.QFont('Helvetica', round(self.hgt * self.font_ratio) -1 , bold = False)

To:
small = QtGui.QFont('Helvetica', round(self.hgt * self.font_ratio) -1)

I'm not sure if this is a related bug or if I should open up a new thread, but when I open up a skew-T on the GUI via anaconda prompt, it's really low resolution making it hard to read some of the text. When I open it on my Ubuntu WSL, it's high resolution but the font is blown up. Not sure if it's due to the configuration of my computer for the anaconda prompt method, the configuration of my VcXsrv when I use my ubuntu WSL, or something within SHARPpy. Here are the same soundings but through different methods.

Anaconda Prompt Method
low_res

Ubuntu WSL method
test

Let me know if I should start a new thread for this issue. I appreciate all the help.

from sharppy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.