njcuk9999 / apero-utils

APERO affiliated utilities and tools
MIT License
3 stars 3 forks source link

[APERO] Add instruments tool #276

Open njcuk9999 opened 1 month ago

njcuk9999 commented 1 month ago

Add a tool to add basic recipes in the right place replacing previous instrument name with new one.

apero/tools/dev/apero_add_instrument.py

njcuk9999 commented 1 month ago

Todo deal with:

element.edits['title'].content = 'APERO DrsFile definitions for {INSTRUMENT}'
element.edits['title'].current_content = '{INSTRUMENT}'
element.edits['title'].new_content = '{INSTRUMENT}'

need to find {INSTRUMENT} in the text and replace it with new {INSTRUMENT}

njcuk9999 commented 1 month ago