Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tbeu committed Feb 11, 2015
1 parent b943195 commit 5f46996
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion PySimulator/IntegratorControl.py
Expand Up @@ -554,7 +554,7 @@ def run(self):
try:
'''
Do the numerical integration in a try branch
to avoid loosing the thread when an intended exception is raised
to avoid losing the thread when an intended exception is raised
'''
try:
import pydevd
Expand Down
Expand Up @@ -157,7 +157,7 @@ def zeros_ij(self, ui=0, yj=0):
numpy.hstack((self.C[yj:yj + 1, :], self.D[yj:yj + 1, ui:ui + 1]))))

# When calculating the zeros, a warning is printed for zeros at infinity
# since a divison by zero occurs resulting in a zero of "nan+nanj".
# since a division by zero occurs resulting in a zero of "nan+nanj".
# The following context suppresses this warning
with warnings.catch_warnings():
warnings.simplefilter("ignore")
Expand Down
Expand Up @@ -50,7 +50,7 @@ class myScatterInspectorOverlay(AbstractOverlay):
Can render the points in a different style, as well as display a
DataLabel.
Used in conjuction with ScatterInspector.
Used in conjunction with ScatterInspector.
"""

# The style to use when a point is hovered over
Expand Down
Expand Up @@ -263,7 +263,7 @@ def test2(model, checkedModel):
from PySide import QtGui
import os
def saveAsCSV(model, variable, data, unit):
(fileName, extension) = QtGui.QFileDialog().getSaveFileName(None, 'Save Variable as CSV', os.getcwd(), "Comma Seperated Value (*.csv)")
(fileName, extension) = QtGui.QFileDialog().getSaveFileName(None, 'Save Variable as CSV', os.getcwd(), "Comma Separated Value (*.csv)")
if not fileName:
return
print "Saving trajectory of {model}.{variable}[{unit}] to {file}".format(model=model.name, variable=variable, unit=unit, file=fileName)
Expand Down
2 changes: 1 addition & 1 deletion PySimulator/Plugins/Analysis/Testing/Testing.py
Expand Up @@ -925,7 +925,7 @@ def run(self):
try:
'''
Do the numerical integration in a try branch
to avoid loosing the thread when an intended exception is raised
to avoid losing the thread when an intended exception is raised
Also guard against compilation failures when loading the model
'''
Expand Down
2 changes: 1 addition & 1 deletion PySimulator/Plugins/SimulationResult/Mtsf/MtsfFmi.py
Expand Up @@ -223,7 +223,7 @@ def _None2Str(x):
seriesIndex = allSeriesNames.index('Continuous')

causality = fmiVariable.causality
# Due to FMI 1.0; in vers. 2.0 this should not be neccessary
# Due to FMI 1.0; in vers. 2.0 this should not be necessary
if causality is None:
causality = 'local'
if variability == 'parameter':
Expand Down
6 changes: 3 additions & 3 deletions PySimulator/Plugins/Simulator/FMUSimulator/FMUSimulator1.py
Expand Up @@ -540,7 +540,7 @@ def handle_event(solver, event_info=None):


def completed_step(solver):
''' Function that is called after each successfull integrator step
''' Function that is called after each successful integrator step
Returns True, if there was a step event
False, if there was no step event
'''
Expand Down Expand Up @@ -755,9 +755,9 @@ class ExplicitEulerSolver():
Integration method: Explicit Euler with event handling (without rootfinding)
'''
def simulate(self, Tstart, dt, Tend, y0, nOutputIntervals, gridWidth):
''' Simulates an ODE-sytem defined by different functions
''' Simulates an ODE-system defined by different functions
from Tstart to Tend by the explicit Euler method with the fixed step size dt.
The inital start values of the states are given by the vector y0.
The initial start values of the states are given by the vector y0.
Time or state events are handled after a successful step if necessary.
Result points are defined by the number of output intervals 'nOutputIntervals'
that define a time grid between Tstart and Tend with constant width.
Expand Down
6 changes: 3 additions & 3 deletions PySimulator/Plugins/Simulator/FMUSimulator/FMUSimulator2.py
Expand Up @@ -415,7 +415,7 @@ def handle_event(solver, event_info=None):


def completed_step(solver):
''' Function that is called after each successfull integrator step
''' Function that is called after each successful integrator step
Returns True, if there was a step event
False, if there was no step event
'''
Expand Down Expand Up @@ -965,9 +965,9 @@ class ExplicitEulerSolver():
Integration method: Explicit Euler with event handling (without rootfinding)
'''
def simulate(self, Tstart, dt, Tend, y0, nOutputIntervals, gridWidth):
''' Simulates an ODE-sytem defined by different functions
''' Simulates an ODE-system defined by different functions
from Tstart to Tend by the explicit Euler method with the fixed step size dt.
The inital start values of the states are given by the vector y0.
The initial start values of the states are given by the vector y0.
Time or state events are handled after a successful step if necessary.
Result points are defined by the number of output intervals 'nOutputIntervals'
that define a time grid between Tstart and Tend with constant width.
Expand Down
4 changes: 2 additions & 2 deletions PySimulator/VariablesBrowser.py
Expand Up @@ -84,13 +84,13 @@ def _menuContextTree(self, point):
return
item = self.itemAt(point)

# Seperate by case:
# Separate by case:
# After right click on an item:
if 'variable' in vars(item):
menu = QtGui.QMenu(self)
model = self.parent.models[item.modelName]
if not model.integrationResults.isAvailable:
menu.addAction("(Only Availabe after Simulation)", None)
menu.addAction("(Only Available after Simulation)", None)
menu.addSeparator()
menu.setDisabled(True)
variable = None
Expand Down

0 comments on commit 5f46996

Please sign in to comment.