Tools for fab data.

rapid_clay_formations_fab.fab_data.tools.csv_reports(args)[source]

Convert fabrication data json files to CSV files.

Use by running python -m rapid_clay_formations_fab.fab_data.csv_report

rapid_clay_formations_fab.fab_data.tools.get_average_cycle_time(elements)[source]
rapid_clay_formations_fab.fab_data.tools.mark_placed(path, from_=None, to=None)[source]

Mark fabrication elemenets as placed in JSON file.

Parameters:
  • path (os.PathLike)

  • from_ (int, optional) – Defines lower bound of element index to mark (inclusive).

  • to (int, optional) – Defines upper bound of element index to mark (exclusive).

rapid_clay_formations_fab.fab_data.tools.renumber_fab_elements(path, prefix=None)[source]
rapid_clay_formations_fab.fab_data.tools.update_fabdata_attrs(path, updated_attrs, from_=None, to=None, reset_ids=False, overwrite=False)[source]

Update fabrication element’s attributes in JSON file.

Parameters:
  • path (os.PathLike)

  • updated_attrs (dict) – Dictionary of attribute names and new values.

  • from_ (int, optional) – Defines lower bound of element index to mark (inclusive).

  • to (int, optional) – Defines upper bound of element index to mark (exclusive).

  • reset_ids (bool, optional) – If true will change the id_ attribute to be the same as the element’s index in list. Defaults to False.

  • overwrite (bool, optional) – Overwrite attributes. Defaults to False.