Skip to content

Commit

Permalink
bug fix phyFit.py (*_from_file) and improved docu
Browse files Browse the repository at this point in the history
  • Loading branch information
GuenterQuast committed Jun 25, 2022
1 parent dd42521 commit 3aaf1fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions PhyPraKit/phyFit.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ def decode_rel(e):

# - data
data_x = list(map(float, fd['x_data']))
data_y = list(mape(float, fd['y_data'])
data_y = list(mape(float, fd['y_data']))
if 'x_label' in fd:
x_label = fd['x_label']
else:
Expand Down Expand Up @@ -835,7 +835,7 @@ def normal_distribution(x, mu=80., sigma=1.):
data_label = 'data'

# - data
hdata = list(map(float(fd['raw_data']))
hdata = list(map(float, fd['raw_data']))
bins = 10
if 'n_bins' in fd:
bins = fd['n_bins']
Expand Down
9 changes: 8 additions & 1 deletion builddoc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -473,8 +473,15 @@ Eine direkt im Browser ausführbare Installation von *PhyPraKit* gibt es auf
(Beispieldatei `GammaSpektra.labx`).


**Stand-alone Tools für Standard-Aufgaben:**

Für Standardaufgaben gibt es einige Python-Programme im Verzeichnis
`PhyPraKit/tools/`, die als stand-alone Anwendungen gedacht sind.
`PhyPraKit/tools/`, die als stand-alone Anwendungen gedacht sind. Die
Programme sind auch Teil des Installationspakets und können von allen
Stellen im Dateisystem aus als Modul aufgerufen werden, wenn *PhyPraKit*
als *Python*-Paket installiert ist:

`python3 -m PhyPraKit.<ToolName> [Optionen] <Eingabedatei>`

**Daten darstellen mit dem Skript plotData.py**

Expand Down

0 comments on commit 3aaf1fa

Please sign in to comment.