apsbits.api.create_new_instrument#

Create a new instrument from a fixed template.

Copies the template directory and updates pyproject.toml and .templatesyncignore.

Functions

copy_instrument(destination_dir)

Copy template directory to the destination.

create_qserver(qserver_dir, name)

Create a qserver config file in the destination directory.

main()

Parse arguments and create the instrument.

apsbits.api.create_new_instrument.copy_instrument(destination_dir: Path) None[source]#

Copy template directory to the destination.

Parameters:
  • template_dir – Path to the template directory.

  • destination_dir – Path to the new instrument directory.

Returns:

None

apsbits.api.create_new_instrument.create_qserver(qserver_dir: Path, name: str) None[source]#

Create a qserver config file in the destination directory.

apsbits.api.create_new_instrument.main() None[source]#

Parse arguments and create the instrument.

Returns:

None