-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Snuffling Quick Save #25
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank for this feature! :)
I made some minor suggestions to the code, also @HerrMuellerluedenscheid should have a look.
quick_save.py
Outdated
|
||
# TO-DO - save to VELEST format. | ||
|
||
user_def_root_folder = \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize this constant and default to the user's home folder: os.path.expanduser('~')
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
quick_save.py
Outdated
def __snufflings__(): | ||
"""Returns a list of snufflings to be exported by this module.""" | ||
|
||
return[QuickSave()] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add newline at EOF
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed that empty lines at EOF are automatically truncated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now it worked. It was editor's fault.
Good. I will wait for additional comments and then apply the proposed changes. Gregor |
quick_save.py
Outdated
@@ -225,5 +222,5 @@ def call(self): | |||
def __snufflings__(): | |||
"""Returns a list of snufflings to be exported by this module.""" | |||
|
|||
return[QuickSave()] | |||
return[ QuickSave() ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing whitespace, please remove the added white spaces again. this does not follow pep8 ...
Hey @grajh After quite some time I had a quick look again into your source code. Do I get it right that this snuffling is saving markers in a format that is suitable for the inversion tool Velest? |
Hi! Yes, this is basically it. Till now i just oppened terminal and run it separately. One more thing comes to my mind for the future. I could also implement a procedure which would allow to read already existing VELEST file and merge it with current picks by overwriting or adding picks to existing file. This functionality could be merged with default marker opening procedure in Snuffler. |
Hi!
For my needs I wrote a snuffling, which allows me to save markers more efficiently (predefined folder) and based on the name of an active event.
I guess some else could also benefit from it.
Gregor