materials_commons.cli.tmp_functions module

Temporary functions

materials_commons.cli.tmp_functions.add_owner(client, objects)[source]

Add ‘owner’ based on ‘owner_id’

Parameters
  • client (materials_commons.api.Client) – Materials Commons Client

  • objects (object or Iterable of objects) – Objects with ‘owner_id’

Notes

This will create a cache, client._user_by_id, a dict of owner_id:materials_commons.api.User.

materials_commons.cli.tmp_functions.get_dataset(client, project_id, dataset_id)[source]

Temporary workaround because Client.get_dataset is returning the wrong dataset