usgs / groundmotion-processing

Parsing and processing ground motion data
Other
54 stars 42 forks source link

"rename" project function does not work properly #1026

Closed emthompson-usgs closed 2 years ago

emthompson-usgs commented 2 years ago

Renaming a project should not change project paths. I didn't notice this behavior when it was created. For example, I have this project:

Project: dev **Current Project**
    Conf Path: /Users/emthompson/gmprocess_projects/dev/conf
    Data Path: /Users/emthompson/gmprocess_projects/dev/data

And renaming with

$ gmrecords proj --rename dev dev2
INFO 2022-10-09 10:12:32 | gmrecords._initialize: Logging level includes INFO.
INFO 2022-10-09 10:12:32 | gmrecords._initialize: PROJECTS_PATH: /Users/emthompson/.gmprocess
INFO 2022-10-09 10:12:32 | projects.main: Running subcommand 'projects'

Renamed 'dev' to 'dev2'.

Gives

Project: dev2 **Current Project**
    Conf Path: /Users/emthompson/gmprocess_projects/dev2/conf
    Data Path: /Users/emthompson/gmprocess_projects/dev2/data