spacetelescope / notebooks

Content in this repository is not maintained and is actively being migrated to other repos.
https://spacetelescope.github.io/notebooks/
BSD 3-Clause "New" or "Revised" License
218 stars 163 forks source link

Type error when running tweakreg related code #139

Open catherinecheng02 opened 4 years ago

catherinecheng02 commented 4 years ago

When running section 4a of the align_mosaics notebook, the type error below is appearing: image

leading to some other issues: image

pllim commented 4 years ago

Thanks for reporting this! cc @samanthalh

samanthalh commented 4 years ago

This is a known issue with the new numpy version 1.18.1, more info can be found here: https://github.com/spacetelescope/drizzlepac/issues/582

A bug fix has already been coded, but not yet released (see: https://github.com/spacetelescope/drizzlepac/pull/587), so downgrading the numpy version or downloading the (unverified) developmental version of DrizzlePac from github should resolve this.

cc @catherine-martlin

astrophysaxist commented 2 years ago

@samanthalh what version of numpy would we need to downgrade to for this? I'm seeing something similar for the align_muliple_visits notebook. Looks like my astroconda is pulling in v3.1.6 of DrizzlePac, even with updating the package.