FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
phasecalculator
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yusuf Hamied Department of Chemistry
Hunter Group
SSIPtools
SSIMPLEapps
phasecalculator
Commits
8dcae4d5
Commit
8dcae4d5
authored
5 years ago
by
Mark Driver
Browse files
Options
Downloads
Patches
Plain Diff
start work on CLI functions.
parent
68668862
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
phasecalculator/phasecalculatorcli.py
+24
-1
24 additions, 1 deletion
phasecalculator/phasecalculatorcli.py
with
24 additions
and
1 deletion
phasecalculator/phasecalculatorcli.py
+
24
−
1
View file @
8dcae4d5
...
...
@@ -15,14 +15,37 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
Created on Tue Jan 7 16:34:17 2020
Script with CLI for phasecalculator.
@author: Mark
"""
import
logging
import
argparse
logging
.
basicConfig
()
LOGGER
=
logging
.
getLogger
(
__name__
)
LOGGER
.
setLevel
(
logging
.
WARN
)
def
main
():
# Create parser
parser
=
create_argparser
()
# parse args
args
=
parser
.
parse_args
()
return
process_args
(
args
)
def
process_args
():
def
create_calculator_xml
():
def
read_calculator_xml
():
def
run_system_collection
():
def
create_phasecalculator_argparser
():
def
create_calculate_argparser
():
def
create_inputgen_argparser
():
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment