pypif.util.read_view module

class pypif.util.read_view.ReadView(system)

Bases: object

__init__(system)

Setup a ReadView by recursing through the pif objects

Parameters:system – to process into a ReadView; doesn’t need to be a system
keys()
pypif.util.read_view.add_child_ambig(child_ambig, child_unambig, ambig, unambig)

Add information about decodings of a child object

Parameters:
  • child_ambig – ambiguous set from child
  • child_unambig – unambiguous set from child
  • ambig – set of keys storing ambig decodings
  • unambig – dictionary storing unambiguous decodings
Returns:

pypif.util.read_view.new_keypair(key, value, ambig, unambig)

Check new keypair against existing unambiguous dict

Parameters:
  • key – of pair
  • value – of pair
  • ambig – set of keys with ambig decoding
  • unambig – set of keys with unambig decoding
Returns: