Skip to content

Commit

Permalink
Filter out molecules that are not populated
Browse files Browse the repository at this point in the history
  • Loading branch information
jkarns275 committed Oct 24, 2019
1 parent a6de618 commit 6ec13e3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/metadata/xsc_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ def all_aliases() -> List[str]:

@staticmethod
def all_names_sorted_by_hitran_id() -> List[str]:
molecules = list(map(lambda m: MoleculeMeta(m), CrossSectionMeta.__XSC_NAMES))
molecules = list(filter(lambda m: m.populated, map(lambda m: MoleculeMeta(m), CrossSectionMeta.__XSC_NAMES)))

return list(map(lambda m: m.name, sorted(molecules, key=lambda m: m.id)))


Expand Down

0 comments on commit 6ec13e3

Please sign in to comment.