Updating using phoebe.update_all_passbands()
in Phoebe version 2.4.14 has made Phoebe inoperable and an error occurs.
#1005
Closed
dingxu6207
started this conversation in
General
Replies: 3 comments 4 replies
-
I tried to uninstall Phoebe and then install any other version of Phoebe, but I encountered this error every time. |
Beta Was this translation helpful? Give feedback.
4 replies
-
Hi, I have the same problem as @dingxu6207, I have tried what they mention here but the error keeps appearing, please help. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I reopened #998, let's try to keep all conversation there so anyone else running into the same issue can find it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
File ~/anaconda3/lib/python3.11/site-packages/phoebe/parameters/parameters.py:424, in send_if_client..send_if_client(self, *args, **kwargs)
421 return ret
423 else:
--> 424 return fctn(self, *args, **kwargs)
File ~/anaconda3/lib/python3.11/site-packages/phoebe/frontend/bundle.py:11961, in Bundle.run_compute(self, compute, model, solver, detach, dataset, times, return_changes, **kwargs)
11956 self.compute_ld_coeffs(compute=compute, skip_checks=True, set_value=True, **{k:v for k,v in kwargs.items() if k in computeparams.qualifiers})
11957 # NOTE that if pblum_method != 'phoebe', then system will be None
11958 # otherwise the system will be create which we can pass on to the backend
11959 # the phoebe backend can then skip initializing the system at least on the master proc
11960 # (workers will need to recreate the mesh)
File ~/anaconda3/lib/python3.11/site-packages/phoebe/frontend/bundle.py:10743, in Bundle.compute_pblums(self, compute, model, pblum, pblum_abs, pblum_scale, pbflux, set_value, unit, **kwargs)
10741 self.compute_ld_coeffs(compute=compute, set_value=True, skip_checks=True, **{k:v for k,v in kwargs.items() if k not in ['ret_structured_dicts', 'pblum_mode', 'pblum_method', 'skip_checks']})
10742 # TODO: make sure this accepts all compute parameter overrides (distortion_method, etc)
File ~/anaconda3/lib/python3.11/site-packages/phoebe/frontend/bundle.py:10386, in Bundle._compute_intrinsic_system_at_t0(self, compute, datasets, compute_l3, compute_l3_frac, compute_extrinsic, **kwargs)
10384 logger.debug("creating system with compute={} kwargs={}".format(system_compute, kwargs))
10385 try:
File ~/anaconda3/lib/python3.11/site-packages/phoebe/backend/backends.py:994, in PhoebeBackend._compute_intrinsic_system_at_t0(self, b, compute, dynamics_method, hier, meshablerefs, datasets, reset, lc_only, **kwargs)
991 # kinds = [b.get_dataset(dataset=ds).kind for ds in datasets]
993 system.update_positions(t0, x0, y0, z0, vx0, vy0, vz0, etheta0, elongan0, eincl0, ignore_effects=True)
--> 994 system.populate_observables(t0, ['lc' for dataset in datasets], datasets, ignore_effects=True)
997 if reset:
998 logger.debug("rank:{}/{} PhoebeBackend._create_system_and_compute_pblums: resetting system".format(mpi.myrank, mpi.nprocs))
File ~/anaconda3/lib/python3.11/site-packages/phoebe/backend/universe.py:319, in System.populate_observables(self, time, kinds, datasets, ignore_effects)
317 for kind, dataset in zip(kinds, datasets):
318 for starref, body in self.items():
--> 319 body.populate_observable(time, kind, dataset, ignore_effects=ignore_effects)
File ~/anaconda3/lib/python3.11/site-packages/phoebe/backend/universe.py:1078, in Body.populate_observable(self, time, kind, dataset, ignore_effects, **kwargs)
1070 if time==self.time and dataset in self.populated_at_time and 'pblum' not in kind:
1071 # then we've already computed the needed columns
1072
1073 # TODO: handle the case of intensities already computed by
1074 # /different/ dataset (ie RVs computed first and filling intensities
1075 # and then lc requesting intensities with SAME passband/atm)
1076 return
-> 1078 new_mesh_cols = getattr(self, 'populate{}'.format(kind.lower()))(dataset, ignore_effects=ignore_effects, **kwargs)
1080 for key, col in new_mesh_cols.items():
1082 self.mesh.update_columns_dict({'{}:{}'.format(key, dataset): col})
File ~/anaconda3/lib/python3.11/site-packages/phoebe/backend/universe.py:1807, in Star._populate_lc(self, dataset, ignore_effects, **kwargs)
1803 pblum = kwargs.get('pblum', 4*np.pi)
1805 if lc_method=='numerical':
-> 1807 pb = passbands.get_passband(passband)
1809 if ldatm != 'none' and '{}:ldint'.format(ldatm) not in pb.content:
1810 if ld_mode == 'lookup':
File ~/anaconda3/lib/python3.11/site-packages/phoebe/atmospheres/passbands.py:3239, in get_passband(passband, content, reload, update_if_necessary, download_local, download_gzipped)
3237 if reload or _pbtable.get(passband, {}).get('pb', None) is None:
3238 logger.info("loading {} passband from {} (including all tables)".format(passband, _pbtable[passband]['fname']))
-> 3239 pb = Passband.load(_pbtable[passband]['fname'], load_content=True)
3240 _pbtable[passband]['pb'] = pb
3242 return _pbtable[passband]['pb']
File ~/anaconda3/lib/python3.11/site-packages/phoebe/atmospheres/passbands.py:481, in Passband.load(cls, archive, load_content)
479 if 'ck2004:Inorm' in self.content:
480 self._ck2004_axes = (np.array(list(hdul['ck_teffs'].data['teff'])), np.array(list(hdul['ck_loggs'].data['logg'])), np.array(list(hdul['ck_abuns'].data['abun'])))
--> 481 self._ck2004_energy_grid = hdul['cknegrid'].data
482 self._ck2004_photon_grid = hdul['cknpgrid'].data
484 if 'ck2004:Imu' in self.content:
File ~/anaconda3/lib/python3.11/site-packages/astropy/io/fits/hdu/hdulist.py:322, in HDUList.getitem(self, key)
317 # Originally this used recursion, but hypothetically an HDU with
318 # a very large number of HDUs could blow the stack, so use a loop
319 # instead
320 try:
321 return self._try_while_unread_hdus(super().getitem,
--> 322 self._positive_index_of(key))
323 except IndexError as e:
324 # Raise a more helpful IndexError if the file was not fully read.
325 if self._read_all:
File ~/anaconda3/lib/python3.11/site-packages/astropy/io/fits/hdu/hdulist.py:777, in HDUList._positive_index_of(self, key)
762 def _positive_index_of(self, key):
763 """
764 Same as index_of, but ensures always returning a positive index
765 or zero.
(...)
774 inefficient.
775 """
--> 777 index = self.index_of(key)
779 if index >= 0:
780 return index
File ~/anaconda3/lib/python3.11/site-packages/astropy/io/fits/hdu/hdulist.py:758, in HDUList.index_of(self, key)
755 break
757 if (found is None):
--> 758 raise KeyError(f'Extension {key!r} not found.')
759 else:
760 return found
KeyError: "Extension 'cknegrid' not found."
Beta Was this translation helpful? Give feedback.
All reactions