bulk string replacement in repository #254
Replies: 2 comments 5 replies
-
Since we made a conus404 intake catalog and removed all conus404 entries from the main hytest intake catalog, I wanted to update all notebooks to point to the new subcatalog. I wanted to manually update the notebooks given that reading in an intake catalog and then a dataset from it usually takes a couple lines of code that may be formatted in different ways. I searched all ipynbs that contained text that looked like a read of the CONUS404 hourly dataset from any location (
I also searched for the strings 'conus404-daily-' and 'conus404-monthly-'. I manually opened each notebook and found the string, then made a replacement where appropriate. Some notebooks did not need replacement because the string was contained in cell output. I chose not to update these cell outputs, though they will be different the next time a user runs the notebook. |
Beta Was this translation helpful? Give feedback.
-
@gzt5142 also had some helpful suggestions for automatic replacement of the string here. |
Beta Was this translation helpful? Give feedback.
-
I am starting a discussion thread to document helpful ways to search all the files in our repo for a particular string that we want to replace.
Beta Was this translation helpful? Give feedback.
All reactions