Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NoneType' object has no attribute 'replace' when reading asd files #14

Open
YanCheng-go opened this issue Oct 18, 2020 · 0 comments
Open

Comments

@YanCheng-go
Copy link

Traceback (most recent call last):
File "C:/Users/ChengY/.PyCharmCE2019.3/config/scratches/scratch.py", line 64, in
s = specdal.Spectrum(filepath=os.path.join(work_dir, date, file_name))
File "C:\Program Files (x86)\Python37_6\lib\site-packages\specdal\spectrum.py", line 55, in init
self.read(filepath, measure_type, verbose=verbose)
File "C:\Program Files (x86)\Python37_6\lib\site-packages\specdal\spectrum.py", line 79, in read
data, meta = read(filepath, verbose=verbose)
File "C:\Program Files (x86)\Python37_6\lib\site-packages\specdal\reader.py", line 18, in read
read_metadata, verbose)
File "C:\Program Files (x86)\Python37_6\lib\site-packages\specdal\reader.py", line 155, in read_asd
ref_column = tgt_column.replace('tgt', 'ref')
AttributeError: 'NoneType' object has no attribute 'replace'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant