-
Notifications
You must be signed in to change notification settings - Fork 6
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
creating function main #4
Draft
aajayi-21
wants to merge
18
commits into
diffpy:main
Choose a base branch
from
aajayi-21:create_main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
36fce4d
Initial commit creating main
aajayi-21 2ffed0c
Merge branch 'main' of github.com:diffpy/diffpy.snmf into create_main
aajayi-21 42dac41
reformatted
aajayi-21 dfa4910
setup library behavior
aajayi-21 b982382
updated main, fixed io
aajayi-21 6d8be90
added create_parser function to handle application input
aajayi-21 6fb2879
added the maximum iterations variable and the condition for when the …
aajayi-21 07cd3ec
renamed parameters and added output directory parameter. Added functi…
aajayi-21 1be46c2
Merge branch 'main' into create_main
aajayi-21 32bf269
added import statement, synced main with branch
aajayi-21 e527a19
added functionality to test cli app
aajayi-21 865251e
added explicit default value for --input-directory and modified help …
aajayi-21 8f6b94e
changed import statement to explicitly import functions
aajayi-21 a174475
reformatted io.py, moved version argument to bottom of create_parser,…
aajayi-21 8b26f4f
changed "component_amount" to "number_of_components" in io.py. change…
aajayi-21 a024bb5
fixed typo out-directory help string
aajayi-21 1331805
changed 'xrd' to 'power_diffraction' choices for data_type, renamed v…
aajayi-21 7d4c97f
added a lifting factor optional argument
aajayi-21 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
how about "The lifting factor. Data will be lifted by lifted data = data - min(data)*lift. Default is 1"
btw, it occurs to me that if the min(data) is positive, the "lift" will "lower" the data to zero if lift = 1 and will lower it to below zero if lift > 1. This is probably undesirable behavior. Make sure you have tests for this eventuality that give the behavior you want.
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 will make this changes.
The same thought occurred to me. If the min(data) is positive, it's not apparent to me that the data would need to be lifted. My idea is that if the minimum is positive, then do nothing to the data.
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.
That is reasonable, though why not allow the user to lift the data if she wants to?
Maybe make sure the lift is a lift, so it adds the absolute value of min(data)*lift to the data, something like that.
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.
Ok.