Closed karanbt closed 1 week ago
We could catch such problems by running checksums ahead of time. It seems to happen frequently, which puzzles me. Guess the downloads time out and fail, causing this issue.
Is it possible that the issue is caused by the FITS file generated consuming more memory than the memory allocated to WSL on my system? The other day, I was able to run the notebook on Google Colab without encountering any errors.
I don't think so - I imagine that we would get an out-of-memory exception in that case, not a silent truncation. This seems to be a corrupted passband file while being downloaded from phoebe servers. This happens infrequently, but still frequently enough that it shows up. What happens if you try to load the passband directly?
pb = phoebe.get_passband('Johnson:V')
print(pb.content)
This is the output I receive when I attempt to load the passband directly.
['ck2004:Inorm', 'phoenix:ld', 'phoenix:Inorm', 'ck2004:ldint', 'extern_atmx:Inorm', 'blackbody:Inorm', 'extern_planckint:Inorm', 'ck2004:ld', 'phoenix:ldint', 'phoenix:Imu', 'ck2004:Imu']
One of my colleagues suggested that the issue might be related to memory allocation, as I am using an old system with 4GB of RAM and WSL can only utilize half of the system's RAM.
I still don't think this has to do with the amount of RAM; passband tables are of the order of 15MB in size. Can you please show me the output of ls -lh ~/.phoebe/atmospheres/tables/passbands
? If you don't have any passbands in there, can you find the same directory in your install path, either /usr/local/
if a global install, or /path/to/venv/lib
if in a venv?
Also, can you check that the bolometric passband is loading correctly?
pb = phoebe.get_passband('Bolometric:900-40000')
print(pb.content)
I still don't think this has to do with the amount of RAM; passband tables are of the order of 15MB in size. Can you please show me the output of
ls -lh ~/.phoebe/atmospheres/tables/passbands
? If you don't have any passbands in there, can you find the same directory in your install path, either/usr/local/
if a global install, or/path/to/venv/lib
if in a venv?
Below is the output I received for the list of files in the directory. This clearly shows that the bolometric passband is being truncated while downloading.
total 12M -rw-r--r-- 1 karanbt karanbt 288K May 24 19:23 bolometric_900-40000.fits -rw-r--r-- 1 karanbt karanbt 12M Jun 25 11:46 johnson_v.fits
Also, can you check that the bolometric passband is loading correctly?
pb = phoebe.get_passband('Bolometric:900-40000') print(pb.content)
WARNING: File may have been truncated: actual file length (294912) is smaller than the expected size (2165760) [astropy.io.fits.file]
It seems that the bolometric passband has been causing the loading issue. And I was able to call run_compute() without encountering any errors after explicitly redownloading the bolometric passband.
Thanks.
Discussed in https://github.com/phoebe-project/phoebe2/discussions/805