Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolves #121 consistent with comments #134

Merged
merged 1 commit into from
Jun 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{
"core:sample_start": 0, # The sample index that these parameters take effect.
"core:frequency": 900000000, # The center frequency of the recording (900 MHz, here).
"core:time": "2017-02-01T11:33:17053240428Z"
"core:datetime": "2017-02-01T11:33:17053240428Z"
},
{
"core:sample_start": 100000, # Mandatory
Expand Down
6 changes: 3 additions & 3 deletions sigmf/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"required": false,
"help": "Sample data license"
},
"core:date": {
"core:datetime": {
"type": "string",
"required": false,
"pattern": "",
Expand Down Expand Up @@ -68,12 +68,12 @@
"required": false,
"help": "Center frequency of signal (Hz)"
},
"core:sampling_rate": {
"core:sample_rate": {
"type": "double",
"required": false,
"help": "Sampling rate of signal (Sps)"
},
"core:time": {
"core:datetime": {
"type": "string",
"required": false,
"help": "Start time of chunk"
Expand Down
2 changes: 1 addition & 1 deletion tests/test_sigmffile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
def simulate_capture(sigmf_md, n, capture_len):
start_index = capture_len * n

capture_md = {"core:time": utils.get_sigmf_iso8601_datetime_now()}
capture_md = {"core:datetime": utils.get_sigmf_iso8601_datetime_now()}

sigmf_md.add_capture(start_index=start_index, metadata=capture_md)

Expand Down
6 changes: 3 additions & 3 deletions tests/test_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,16 @@
"core:offset": 0,
"core:version": "X.X.X",
"core:license": "CC0",
"core:date": "foo",
"core:datetime": "foo",
"core:url": "foo",
"core:sha512": "69a014f8855058d25b30b1caf4f9d15bb7b38afa26e28b24a63545734e534a861d658eddae1dbc666b33ca1d18c1ca85722f1f2f010703a7dbbef08189a1d0e5"
},
"captures": [
{
"core:sample_start": 0,
"core:sampling_rate": 10000000,
"core:sample_rate": 10000000,
"core:frequency": 950000000,
"core:time": "2017-02-01T11:33:17,053240428+01:00",
"core:datetime": "2017-02-01T11:33:17,053240428+01:00",
"uhd:gain": 34
},
{
Expand Down