Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-advanced-user-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-advanced-user-tools
Commits
9f86f48e
Commit
9f86f48e
authored
3 years ago
by
Henrik tom Wörden
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: minor changes
- declared feature experimental - removed outdated TODOs - comment styling
parent
240123c3
No related branches found
No related tags found
2 merge requests
!39
Release 0.4.0
,
!20
created draft for generic analysis method
Pipeline
#17119
passed
3 years ago
Stage: setup
Stage: cert
Stage: style
Stage: unittest
Stage: integrationtest
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CHANGELOG.md
+1
-1
1 addition, 1 deletion
CHANGELOG.md
src/caosadvancedtools/serverside/generic_analysis.py
+3
-7
3 additions, 7 deletions
src/caosadvancedtools/serverside/generic_analysis.py
with
4 additions
and
8 deletions
CHANGELOG.md
+
1
−
1
View file @
9f86f48e
...
...
@@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ###
-
`generic_analysis.py`
allows to easily call scripts to perform analyses in
server side scripting
server side scripting
[EXPERIMENTAL]
### Changed ###
...
...
This diff is collapsed.
Click to expand it.
src/caosadvancedtools/serverside/generic_analysis.py
+
3
−
7
View file @
9f86f48e
...
...
@@ -134,7 +134,7 @@ def call_script(script_name: str, record_id: int):
ret
=
run_server_side_script
(
script_name
,
record_id
)
if
ret
.
code
!=
0
:
logger
.
error
(
"
Script failed
"
)
logger
.
error
(
"
Script failed
!
"
)
logger
.
debug
(
ret
.
stdout
)
logger
.
error
(
ret
.
stderr
)
else
:
...
...
@@ -161,9 +161,6 @@ def run(dataAnalysisRecord: db.Record):
said for the python package holds here.
"""
# TODO enhance datamodel? 'Software' Property that references 'Script' or
# Python module?
if
dataAnalysisRecord
.
get_property
(
"
scripts
"
)
is
not
None
:
script_name
=
check_referenced_script
(
dataAnalysisRecord
)
logger
.
debug
(
...
...
@@ -190,8 +187,7 @@ def run(dataAnalysisRecord: db.Record):
def
_parse_arguments
():
"""
Parses the command line arguments.
"""
"""
Parses the command line arguments.
"""
parser
=
argparse
.
ArgumentParser
(
description
=
'
__doc__
'
)
parser
.
add_argument
(
"
--module
"
,
help
=
"
An id an input dataset.
"
)
parser
.
add_argument
(
"
--inputset
"
,
help
=
"
An id an input dataset.
"
)
...
...
@@ -201,6 +197,7 @@ def _parse_arguments():
def
main
():
"""
This is for testing only.
"""
args
=
_parse_arguments
()
dataAnalysisRecord
=
db
.
Record
()
...
...
@@ -208,7 +205,6 @@ def main():
dataAnalysisRecord
.
add_property
(
name
=
"
ParameterSet
"
,
value
=
args
.
parameter
)
dataAnalysisRecord
.
add_property
(
name
=
"
Software
"
,
value
=
args
.
module
)
# TODO: should this be done?
dataAnalysisRecord
.
insert
()
run
(
dataAnalysisRecord
)
...
...
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