C-Accel-CRIPT / sdk-archive

CRIPT Python SDK
MIT License
11 stars 0 forks source link

Inventory indexing by string doesn't work #53

Open dylanwal opened 1 year ago

dylanwal commented 1 year ago

The inventory node is supposed to be able to be use index notation to get material nodes; this was broken in the latest update.

material = inventory["toluene"]

Inventory now only stores urls instead of full material nodes.

Proposed solution: get the material nodes when Inventory._generate_index_table is called.

rjmello commented 1 year ago

This is happening because the default value of the get_level parameter is 0. I just created PR #55 to bump this to 1.