Skip to content
Snippets Groups Projects

[AGIPD][LPD] Add DataFile.create_legacy_source

Merged Philipp Schmidt requested to merge feat/datafile-legacy-sources into master

Description

With the change of source name for corrected data while maintaining backwards compatibility through the concept of legacy sources, this adds a correspondig call creating the soft links to DataFile.

How Has This Been Tested?

with DataFile(p, 'w') as f:
    f.create_index(train_ids)
    
    instr_src = f.create_instrument_source('AN/ACTUAL/DEVICE:output')
    instr_src.create_key('data.bar', np.random.rand(len(train_ids)))
    instr_src.create_index(bar=np.ones(len(train_ids)))
    f.create_legacy_source('A/LEGACY/DEVICE:xtdf', 'AN/ACTUAL/DEVICE:output')
    
    f.create_metadata()

(and pending CI)

Types of changes

  • Refactor (refactoring code with no functionality changes)

Reviewers

@ahmedk

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading