Passing inconsistent packages or parents when there is a store#

from nbproject import header

Consistent parents:

header(parent=["z14KWQKD4bwE", "jhvyoIrxoeSz"])
id3m2Q6UBuwgSH
version0
time_init2022-07-18 12:32
time_run2023-03-12 16:58
parentz14KWQKD4bwE jhvyoIrxoeSz
pypackage_storenbproject==0.1.6 pandas==1.4.1
pypackage_livenbproject==0.8.2 pandas==1.5.3

Dropping one parent:

header(parent="z14KWQKD4bwE")
id3m2Q6UBuwgSH
version0
time_init2022-07-18 12:32
time_run2023-03-12 16:58
parentz14KWQKD4bwE jhvyoIrxoeSz
pypackage_storenbproject==0.1.6 pandas==1.4.1
pypackage_livenbproject==0.8.2 pandas==1.5.3
ℹ️ Argument parent is inconsistent with store.
Please update metadata, e.g.: meta.store.parent = parent; meta.store.write()

Wrong parents:

header(parent="a")
id3m2Q6UBuwgSH
version0
time_init2022-07-18 12:32
time_run2023-03-12 16:58
parentz14KWQKD4bwE jhvyoIrxoeSz
pypackage_storenbproject==0.1.6 pandas==1.4.1
pypackage_livenbproject==0.8.2 pandas==1.5.3
ℹ️ Argument parent is inconsistent with store.
Please update metadata, e.g.: meta.store.parent = parent; meta.store.write()
header(parent=["z14KWQKD4bwE", "a"])
id3m2Q6UBuwgSH
version0
time_init2022-07-18 12:32
time_run2023-03-12 16:58
parentz14KWQKD4bwE jhvyoIrxoeSz
pypackage_storenbproject==0.1.6 pandas==1.4.1
pypackage_livenbproject==0.8.2 pandas==1.5.3
ℹ️ Argument parent is inconsistent with store.
Please update metadata, e.g.: meta.store.parent = parent; meta.store.write()

Inconsistent packages:

header(pypackage="nbformat")
id3m2Q6UBuwgSH
version0
time_init2022-07-18 12:32
time_run2023-03-12 16:58
parentz14KWQKD4bwE jhvyoIrxoeSz
pypackage_storenbproject==0.1.6 pandas==1.4.1
pypackage_livenbproject==0.8.2 pandas==1.5.3
ℹ️ Argument pypackage is inconsistent with metadata store.
Please update metadata: meta.store.add_pypackages("nbformat").write()