Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
sgn-ts
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
greg
sgn-ts
Commits
02e7b14b
Commit
02e7b14b
authored
1 month ago
by
Madeline C Wade
Browse files
Options
Downloads
Patches
Plain Diff
Formatting updates
parent
c914ae3b
No related branches found
Branches containing commit
No related tags found
1 merge request
!114
Add new mode to FakeSeriesSource
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/sgnts/sources/fake_series.py
+4
-3
4 additions, 3 deletions
src/sgnts/sources/fake_series.py
tests/sources/test_fake_series.py
+1
-2
1 addition, 2 deletions
tests/sources/test_fake_series.py
with
5 additions
and
5 deletions
src/sgnts/sources/fake_series.py
+
4
−
3
View file @
02e7b14b
...
...
@@ -35,9 +35,10 @@ class FakeSeriesSource(TSSource):
signal_type:
str, currently supported types: (1)
'
white
'
: white noise data. (2)
'
sin
'
or
'
sine
'
: sine wave data. (3)
'
impulse
'
: creates an impulse data, where the
value is one at one sample point, and everywhere else is zero. (4)
'
const_int
'
or
'
constant_int
'
: constant int values as specified by user. (5)
'
const_float
'
or
'
constant_float
'
: constant float values as specified by user
value is one at one sample point, and everywhere else is zero.
(4)
'
const_int
'
or
'
constant_int
'
: constant int values as specified
by user. (5)
'
const_float
'
or
'
constant_float
'
: constant float values as
specified by user
fsin:
float, the frequency of the sine wave if signal_type =
'
sin
'
const_int:
...
...
This diff is collapsed.
Click to expand it.
tests/sources/test_fake_series.py
+
1
−
2
View file @
02e7b14b
"""
Tests for the fake_series module.
"""
"""
Tests for the fake_series module.
"""
import
numpy
...
...
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