Commit b6370499 authored by Zolnierczuk, Piotr's avatar Zolnierczuk, Piotr
Browse files

bugfix crashing hdf conversion on macos

parent a36b0f11
Loading
Loading
Loading
Loading
+9 −4
Original line number Diff line number Diff line
@@ -400,12 +400,17 @@ def read_beam_monitors(lines):
                counter.append(buf)
            break
        buf += line
    #
    def counter_process(counter):
        res = []
        for _ in [ _.replace('\n',' ') for _ in counter ]:
            res.append([ int(_x) for _x in _.split() ])
        return np.asarray(res)

    if counter:
        xcounter = [ _.replace('\n',' ') for _ in counter ]
        result['counter'] = np.loadtxt(xcounter,  dtype='i4')
        result['counter'] = counter_process(counter)
    if ccounter:
        xcounter = [ _.replace('\n',' ') for _ in ccounter ]
        result['counter_ccard'] = np.loadtxt(xcounter, dtype='i8')
        result['counter_ccard'] = counter_process(ccounter)
    return result

def read_echo_data(fdesc, newshape, **kwargs):
+2 −2
Original line number Diff line number Diff line
@@ -3,8 +3,8 @@ PySEN revision module
"""
import sys
__version__  = "1.2"
__release__  = "rc9"
__date__     = "Feb 2, 2023"
__release__  = "rc10"
__date__     = "Feb 4, 2023"

def version(full=False):
    "get pysen version number"