---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-13-404d8b87001a> in <module>
----> 1 psz = Table.read('./test/PSZ2_G022.03+17.75i_cal.cat', format='ascii')
~/.local/lib/python3.6/site-packages/astropy/table/table.py in read(cls, *args, **kwargs)
2548 # RST table and inserts at the end of the docstring. DO NOT REMOVE.
2549
-> 2550 out = io_registry.read(cls, *args, **kwargs)
2551 # For some readers (e.g., ascii.ecsv), the returned `out` class is not
2552 # guaranteed to be the same as the desired output `cls`. If so,
~/.local/lib/python3.6/site-packages/astropy/io/registry.py in read(cls, format, *args, **kwargs)
515
516 reader = get_reader(format, cls)
--> 517 data = reader(*args, **kwargs)
518
519 if not isinstance(data, cls):
~/.local/lib/python3.6/site-packages/astropy/io/ascii/connect.py in read_asciitable(filename, **kwargs)
18 def read_asciitable(filename, **kwargs):
19 from .ui import read
---> 20 return read(filename, **kwargs)
21
22
~/.local/lib/python3.6/site-packages/astropy/io/ascii/ui.py in read(table, guess, **kwargs)
371 # through below to the non-guess way so that any problems result in a
372 # more useful traceback.
--> 373 dat = _guess(table, new_kwargs, format, fast_reader)
374 if dat is None:
375 guess = False
~/.local/lib/python3.6/site-packages/astropy/io/ascii/ui.py in _guess(table, read_kwargs, format, fast_reader)
528
529 reader.guessing = True
--> 530 dat = reader.read(table)
531 _read_trace.append({'kwargs': copy.deepcopy(guess_kwargs),
532 'Reader': reader.__class__,
~/.local/lib/python3.6/site-packages/astropy/io/ascii/core.py in read(self, table)
1152
1153 # Get a list of the lines (rows) in the table
-> 1154 self.lines = self.inputter.get_lines(table)
1155
1156 # Set self.data.data_lines to a slice of lines contain the data rows
~/.local/lib/python3.6/site-packages/astropy/io/ascii/core.py in get_lines(self, table)
301 ('\n' not in table + '' and '\r' not in table + '')):
302 with get_readable_fileobj(table,
--> 303 encoding=self.encoding) as fileobj:
304 table = fileobj.read()
305 lines = table.splitlines()
/opt/Python_3.6.5/lib/python3.6/contextlib.py in __enter__(self)
79 def __enter__(self):
80 try:
---> 81 return next(self.gen)
82 except StopIteration:
83 raise RuntimeError("generator didn't yield") from None
~/.local/lib/python3.6/site-packages/astropy/utils/data.py in get_readable_fileobj(name_or_obj, encoding, cache, show_progress, remote_timeout)
191 name_or_obj, cache=cache, show_progress=show_progress,
192 timeout=remote_timeout)
--> 193 fileobj = io.FileIO(name_or_obj, 'r')
194 if is_url and not cache:
195 delete_fds.append(fileobj)
FileNotFoundError: [Errno 2] No such file or directory: './test/PSZ2_G022.03+17.75i_cal.cat'