Skip to content

Errors when specifying column labels that have space in Linkam output text file #168

@jpk96

Description

@jpk96

Exported text files from the LINK software when Linkam shear stage is used have column titles that have a space in them (e.g. T Top, T Bottom).

When listing these columns in the input yaml, and running it, the following errors are reported.


Traceback (most recent call last):
File "/nfs/chess/sw/miniforge3_chap/envs/CHAP_tomo/bin/CHAP", line 33, in
sys.exit(load_entry_point('ChessAnalysisPipeline', 'console_scripts', 'CHAP')())
File "/nfs/chess/sw/ChessAnalysisPipeline/CHAP/runner.py", line 156, in main
runner(run_config, pipeline_config, common_comm)
File "/nfs/chess/sw/ChessAnalysisPipeline/CHAP/runner.py", line 183, in runner
data = run(pipeline_config,
File "/nfs/chess/sw/ChessAnalysisPipeline/CHAP/runner.py", line 325, in run
return pipeline.execute()[0]['data']
File "/nfs/chess/sw/ChessAnalysisPipeline/CHAP/pipeline.py", line 43, in execute
data = item.execute(data=data, **kwargs)
File "/nfs/chess/sw/ChessAnalysisPipeline/CHAP/pipeline.py", line 279, in execute
data = method(**args)
File "/nfs/chess/sw/ChessAnalysisPipeline/CHAP/common/reader.py", line 124, in read
elif not col in data:
TypeError: argument of type 'bool' is not iterable


The input yaml is located at /nfs/chess/scratch/user/jpk96/chap_test/link_shear_reader.yaml.

Based on the last debug message, it looks like the routine correctly identified the column title: "read" with {'inputdir': '/nfs/chess/scratch/user/jpk96/chap_test', 'filename': '/nfs/chess/scratch/user/jpk96/chap_test/raw/Linkam_Data/link_data_exported_clean/setup_28-02-25_16-39-36-34_Exported.txt', 'columns': ['T Top', 'T Bottom']}

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