nxtomomill.utils.utils.embed_url#

nxtomomill.utils.utils.embed_url(url, output_file)[source]#

Create a dataset under duplicate_data and with a random name to store it

Parameters
  • url (DataUrl) – dataset to be copied

  • output_file (str) – where to store the dataset

  • expected_type (Union[None, AcquisitionStep]) – some metadata to put in copied dataset attributes

  • data (None, numpy.array) – data loaded from url is already loaded

Return type

DataUrl