Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pyVis
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
Julian Lenz
pyVis
Commits
6af194f6
Commit
6af194f6
authored
4 years ago
by
Julian Lenz
Browse files
Options
Downloads
Patches
Plain Diff
Added deleteColumns to OnConfig
parent
52aa0df0
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
onConfig.py
+14
-3
14 additions, 3 deletions
onConfig.py
with
14 additions
and
3 deletions
onConfig.py
+
14
−
3
View file @
6af194f6
...
...
@@ -328,7 +328,7 @@ class OnConfig:
'
omitLast
'
:
self
.
omitLast
,
}
def
setVar
(
self
,
var
=-
1
):
def
setVar
(
self
,
var
=-
1
,
appendVar
=
True
):
'''
Sets the variables as necessary. For convenience, this class stores the
given input itself (but barely uses it). More importantly, this method
...
...
@@ -338,8 +338,8 @@ class OnConfig:
return
self
self
.
var
=
var
self
.
mcTimelines
.
setVar
(
self
.
var
)
self
.
data
.
setVar
(
self
.
var
)
self
.
mcTimelines
.
setVar
(
self
.
var
,
appendVar
=
appendVar
)
self
.
data
.
setVar
(
self
.
var
,
appendVar
=
appendVar
)
return
self
...
...
@@ -351,6 +351,17 @@ class OnConfig:
'''
return
self
.
var
def
deleteColumns
(
self
,
indicesOrNames
,
entries
=
None
):
'''
Calls the deleteColumns method of the
'
mcTimelines
'
Data1D object.
This does not affect the results stored in
'
data
'
.
Might be inconsistent if evaluate was already called.
'''
self
.
mcTimelines
.
deleteColumns
(
indicesOrNames
,
entries
)
self
.
setVar
(
self
.
mcTimelines
.
getVar
(),
appendVar
=
False
)
return
self
def
getVarVals
(
self
,
varName
,
entries
=
None
,
obs
=
None
,
var
=
None
):
'''
Wrapper around the getVarVals methods from the underlying Data objects.
...
...
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