# Migrating from afw.image.Filter to FilterLabel

**URL:** <https://www.rubin.community/t/migrating-from-afw-image-filter-to-filterlabel/4591>\
**Category:** DM Notifications\
**Tags:** butler, filter, dm-dev, exposure\
**Created:** [December 8, 2020, 9:23pm UTC](https://www.rubin.community/t/migrating-from-afw-image-filter-to-filterlabel/4591 "2020-12-08T21:23:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kfindeisen](https://sea2.discourse-cdn.com/flex002/user_avatar/www.rubin.community/kfindeisen/32/833_2.png) [@kfindeisen](https://www.rubin.community/u/kfindeisen)\
**Post date:** [February 4, 2021, 10:29pm UTC](https://www.rubin.community/t/migrating-from-afw-image-filter-to-filterlabel/4591/3 "2021-02-04T22:29:25Z")

</div>

One case of incomplete filters we’ve run into is calexps written before `w_2021_06`, which updated most tasks to use `FilterLabel` internally (as described in [afw.image.Filter is now deprecated](http://www.rubin.community/t/afw-image-filter-is-now-deprecated/4675)). Though the `Exposure` format for these files used `FilterLabel`, these labels were populated using old-style `Filter` code, and therefore kept the old behavior of being identified only by their band.

This should not be a major problem in Gen 2, as these files can be patched on read following [DM-27178](https://jira.lsstcorp.org/browse/DM-27178); a Gen 3 fix is pending on [DM-28583](https://jira.lsstcorp.org/browse/DM-28583).

---

_[View the full topic](https://www.rubin.community/t/migrating-from-afw-image-filter-to-filterlabel/4591)._
