Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
adaptive
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Quantum Tinkerer
adaptive
Commits
77ec0687
Commit
77ec0687
authored
6 years ago
by
Bas Nijholt
Browse files
Options
Downloads
Patches
Plain Diff
fix whitespace
parent
03badcd6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#12833
passed
6 years ago
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
adaptive/learner/data_saver.py
+1
-1
1 addition, 1 deletion
adaptive/learner/data_saver.py
check_whitespace
+0
-1
0 additions, 1 deletion
check_whitespace
with
1 addition
and
2 deletions
adaptive/learner/data_saver.py
+
1
−
1
View file @
77ec0687
...
...
@@ -17,7 +17,7 @@ class DataSaver:
-------
Imagine we have a function that returns a dictionary
of the form: ``{
'
y
'
: y,
'
err_est
'
: err_est}``.
>>>
from
operator
import
itemgetter
>>>
_learner
=
Learner1D
(
f
,
bounds
=
(
-
1.0
,
1.0
))
>>>
learner
=
DataSaver
(
_learner
,
arg_picker
=
itemgetter
(
'
y
'
))
...
...
This diff is collapsed.
Click to expand it.
check_whitespace
+
0
−
1
View file @
77ec0687
...
...
@@ -6,4 +6,3 @@
tail
-n1
$f
|
read
-r
_
||
echo
$f
: no newline at end of file
tail
-n1
$f
|
grep
-q
'^$'
&&
echo
$f
: empty line at end of file
done
|
grep
.
>
&2
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