Thanks to visit codestin.com
Credit goes to github.com

Skip to content

main.mp_batch exits after failing with the first file #20

@liorgolgher

Description

@liorgolgher

Hi,

I've called main.mp_batch(foldername=fld,glob_str='*.lst'). It correctly identified 27 matching list files, but then exited after failing to parse the first list file. See below.

Calling main.run_batch_lst(foldername=fld,glob_str='*.lst') yielded the expected behaviour of moving onwards to the next list files after failing to parse first.

Thanks,
Lior


multiprocessing.pool.RemoteTraceback:
"""
Traceback (most recent call last):
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/multiprocessing/pool.py", line 119, in worker
result = (True, func(*args, **kwds))
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/site-packages/pysight/main.py", line 57, in main_data_readout
cur_file.run()
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/site-packages/pysight/ascii_list_file_parser/file_io.py", line 52, in run
self.timepatch: str = self.get_timepatch(metadata)
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/site-packages/pysight/ascii_list_file_parser/file_io.py", line 173, in get_timepatch
f"The timepatch used ({timepatch}) isn't supported "
NotImplementedError: The timepatch used (2) isn't supported for binary files since it uses a 6-byte word representation. Please disallow this option in the MPANT software.
"""

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "", line 1, in
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/site-packages/pysight/main.py", line 423, in mp_batch
pool.map(main_data_readout, all_guis)
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/multiprocessing/pool.py", line 266, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/export/home/pblab/.conda/envs/py36pysight/lib/python3.6/multiprocessing/pool.py", line 644, in get
raise self._value
NotImplementedError: The timepatch used (2) isn't supported for binary files since it uses a 6-byte word representation. Please disallow this option in the MPANT software.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions