Skip to content

Commit

Permalink
Beispiel_GammaSpektroskopie: documented support for zipped labx-Format
Browse files Browse the repository at this point in the history
  • Loading branch information
GuenterQuast committed Feb 16, 2024
1 parent 622ea90 commit 87b2827
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions examples/Beispiel_GammaSpektroskopie.py
Expand Up @@ -3,13 +3,18 @@
Darstellung der Daten aus einer im CASSY labx-Format gespeicherten Datei
am Beispiel der Gamma-Spektroskopie
* Einlesen der Daten im .labx oger gezippten .labx-Format
* Einlesen der Daten im .labx oder gezippten .labx-Format
Args:
- name of file in .labx format
- flag for file type: 0: text, 1: zipped
.. moduleauthor:: Guenter Quast <g.quast@kit.edu>
"""

# last changed: Nov. 16
# last changed: Jan -2024

# -----------------------------------------------------------
import numpy as np, sys
Expand All @@ -26,7 +31,7 @@
# check for / read command line arguments
if len(sys.argv) >= 2:
fname = sys.argv[1] # file name
if len(sys.argv) == 3: # 0: do not unzip, 1: unzip in input file
if len(sys.argv) == 3: # 0: do not unzip, 1: unzip input file
unzip = sys.argv[2]
else:
fname = "GammaSpektra.labx"
Expand Down

0 comments on commit 87b2827

Please sign in to comment.