@T-Bird92: Du hast beim Aufruf das erste Argument vergessen: `self`. Aber *eigentlich* möchtest Du nicht die ungebundene Methode auf der Klasse aufrufen, sondern ein Exemplar von `PID_Controller` erstellen und *darauf* dann die gebundene Methode aufrufen.
Beim zweiten Fehler stimmt der gezeigte ...
Die Suche ergab 8 Treffer
- Dienstag 1. November 2016, 14:21
- Forum: Allgemeine Fragen
- Thema: Klasse und Funktion
- Antworten: 7
- Zugriffe: 1915
- Dienstag 1. November 2016, 13:30
- Forum: Allgemeine Fragen
- Thema: Klasse und Funktion
- Antworten: 7
- Zugriffe: 1915
Klasse und Funktion
class PID_Controller:
def __init__(self):
self.Kp = 0.0
self.Ki = 0.0
self.Kd = 0.0
self.Setpoint = 0.0
self.Fehler = 0.0
self.PID_Val = 0.0
self.Val_Max = 0.0
self.Val_Min = 0.0
self.P_Anteil = 0.0
self.I_Anteil = 0.0
self.D_Anteil = 0.0
self.Integrator = 0.0
self.Differenzierer = 0 ...
def __init__(self):
self.Kp = 0.0
self.Ki = 0.0
self.Kd = 0.0
self.Setpoint = 0.0
self.Fehler = 0.0
self.PID_Val = 0.0
self.Val_Max = 0.0
self.Val_Min = 0.0
self.P_Anteil = 0.0
self.I_Anteil = 0.0
self.D_Anteil = 0.0
self.Integrator = 0.0
self.Differenzierer = 0 ...
- Freitag 28. Oktober 2016, 14:42
- Forum: Sonstige (Pygame, PyOpenGL, ...)
- Thema: Matplotlib auf MacOS
- Antworten: 11
- Zugriffe: 4472
Re: Matplotlib auf MacOS
@T-Bird92: Also wenn `pip3` etwas für Python 2.7 installiert, dann stimmt was an Deinem Sytem nicht. Dann ist irgendetwas kaputt konfiguriert. Was passiert bei folgendem:
python3 -m pip install matplotlib
?
dann passiert das:
MacBook-Pro-Retina:~ Philipp$ python3 -m pip install matplotlib ...
python3 -m pip install matplotlib
?
dann passiert das:
MacBook-Pro-Retina:~ Philipp$ python3 -m pip install matplotlib ...
- Freitag 28. Oktober 2016, 13:49
- Forum: Sonstige (Pygame, PyOpenGL, ...)
- Thema: Matplotlib auf MacOS
- Antworten: 11
- Zugriffe: 4472
Re: Matplotlib auf MacOS
Das Terminal meines Mac.
Es gibt die gleiche Meldung aus wie bei "pip install matplotlib"
PyCharm erkennt matplotlib weiterhin nicht.
Es gibt die gleiche Meldung aus wie bei "pip install matplotlib"
PyCharm erkennt matplotlib weiterhin nicht.
- Freitag 28. Oktober 2016, 11:18
- Forum: Sonstige (Pygame, PyOpenGL, ...)
- Thema: Matplotlib auf MacOS
- Antworten: 11
- Zugriffe: 4472
Re: Matplotlib auf MacOS
Habe ich auch schon probiert.
Dann beruft er sich aber trotzdem auf die 2.7 Pythonversion
Dann beruft er sich aber trotzdem auf die 2.7 Pythonversion
- Freitag 28. Oktober 2016, 09:38
- Forum: Sonstige (Pygame, PyOpenGL, ...)
- Thema: Matplotlib auf MacOS
- Antworten: 11
- Zugriffe: 4472
Re: Matplotlib auf MacOS
Last login: Fri Oct 28 09:55:30 on ttys000
MacBook-Pro-Retina:~ Philipp$ pip install matplotlib
Requirement already satisfied (use --upgrade to upgrade): matplotlib in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Requirement already satisfied (use --upgrade to upgrade ...
MacBook-Pro-Retina:~ Philipp$ pip install matplotlib
Requirement already satisfied (use --upgrade to upgrade): matplotlib in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Requirement already satisfied (use --upgrade to upgrade ...
- Freitag 28. Oktober 2016, 09:14
- Forum: Sonstige (Pygame, PyOpenGL, ...)
- Thema: Matplotlib auf MacOS
- Antworten: 11
- Zugriffe: 4472
Re: Matplotlib auf MacOS
Matplotlib:
git clone git://github.com/matplotlib/matplotlib.git
cd matplotlib
python3 setup.py install
Freetype:
brew install freetype
git clone git://github.com/matplotlib/matplotlib.git
cd matplotlib
python3 setup.py install
Freetype:
brew install freetype
- Freitag 28. Oktober 2016, 08:57
- Forum: Sonstige (Pygame, PyOpenGL, ...)
- Thema: Matplotlib auf MacOS
- Antworten: 11
- Zugriffe: 4472
Matplotlib auf MacOS
Hi Leute,
versuche grade matplotlib auf meinem Mac zu installieren.
Allerdings kommt bei der Installation folgender Fehler:
The following required packages can not be built:
* freetype * Try installing freetype with `brew
* install freetype`
Habe dann wie dort geschrieben freetype installiert ...
versuche grade matplotlib auf meinem Mac zu installieren.
Allerdings kommt bei der Installation folgender Fehler:
The following required packages can not be built:
* freetype * Try installing freetype with `brew
* install freetype`
Habe dann wie dort geschrieben freetype installiert ...
