Apnea Board Forum - CPAP | Sleep Apnea
New: .spoR manipulation tool - Printable Version

+- Apnea Board Forum - CPAP | Sleep Apnea (https://www.apneaboard.com/forums)
+-- Forum: Public Area (https://www.apneaboard.com/forums/Forum-Public-Area)
+--- Forum: Software Support Forum (https://www.apneaboard.com/forums/Forum-Software-Support-Forum)
+--- Thread: New: .spoR manipulation tool (/Thread-New-spoR-manipulation-tool)



New: .spoR manipulation tool - strix - 12-24-2015

Hi all,

I've just finished hacking together a .spoR manipulation tool. It is written in Python, is currently command-line only and doesn't support .SpO2 files — but that'd be easy to add if there was interest in it.

The tool features:
  • Ability to override the date/time stored within the recording, in case you forgot to (or can't) set the date/time in your oximeter. I've also discovered that the CMS SpO2 Review tool (v1.5) writes the wrong date in the file itself if you've left the tool open overnight, even though the filename gets the correct date.
  • The ability to trim null samples from the start and end of the recording (eg, you started recording before you put it on, or took it off before you stopped recording)
  • The ability to crop the recording: exclude data before X and after Y. This is particularly useful if your recording includes data from waking hours, when you only want sleeping hours data imported into SleepyHead.

Where samples are deleted, the tool is smart enough to update the stored start of recording timestamp so's to preserve synchronisation when the .spoR file is imported.

Even though it's a CLI tool, it shouldn't be all that difficult for non-techies to use with some step-by-step instructions. But if there's demand for it, we could think about adding a GUI. However, that raises issues for platform independence: currently, the tool requires nothing more than the standard Python distribution, which can be downloaded and installed freely and easily.

If there's any interest in it, I can make it available. I won't attach it here (yet), because I don't know what the rules are about distributing code or pasting links to such things.


RE: New: .spoR manipulation tool - SamStamport - 03-28-2016

Hi David,

I'm interested in what you've done. Can you tell me more?

Thanks!


RE: New: .spoR manipulation tool - letitgoman - 10-23-2023

(12-24-2015, 02:32 PM)strix Wrote: Hi all,

I've just finished hacking together a .spoR manipulation tool.  It is written in Python, is currently command-line only and doesn't support .SpO2 files — but that'd be easy to add if there was interest in it.

The tool features:
  • Ability to override the date/time stored within the recording, in case you forgot to (or can't) set the date/time in your oximeter.  I've also discovered that the CMS SpO2 Review tool (v1.5) writes the wrong date in the file itself if you've left the tool open overnight, even though the filename gets the correct date.
  • The ability to trim null samples from the start and end of the recording (eg, you started recording before you put it on, or took it off before you stopped recording)
  • The ability to crop the recording: exclude data before X and after Y.  This is particularly useful if your recording includes data from waking hours, when you only want sleeping hours data imported into SleepyHead.

Where samples are deleted, the tool is smart enough to update the stored start of recording timestamp so's to preserve synchronisation when the .spoR file is imported.

Even though it's a CLI tool, it shouldn't be all that difficult for non-techies to use with some step-by-step instructions.  But if there's demand for it, we could think about adding a GUI.  However, that raises issues for platform independence: currently, the tool requires nothing more than the standard Python distribution, which can be downloaded and installed freely and easily.

If there's any interest in it, I can make it available.  I won't attach it here (yet), because I don't know what the rules are about distributing code or pasting links to such things.


Hi, I am not sure if you are still around. I am intersted in the tool that you made, but I couldn't find it anywhere. I need to have a sample .spoR file so that I can create an adapter from a spo2 source file captured from my smart watch, then import to Oscar. Could you please kindly share your project or at least a sample .spor file used for testing?


Thanks!


RE: New: .spoR manipulation tool - Crimson Nape - 10-23-2023

Hi letitgoman! - Welcome

The last time the OP was on the board was, 10-26-2016, 12:10 PM. I wouldn't hold out much hope your message will be read.

- Red


RE: New: .spoR manipulation tool - letitgoman - 10-23-2023

(10-23-2023, 08:45 PM)Crimson Nape Wrote: Hi letitgoman!  -  Welcome

The last time the OP was on the board was, 10-26-2016, 12:10 PM.   I wouldn't hold out much hope your message will be read.

- Red

Yea I don't have a high hope for this. Any tips where would be a better/best place to get a sample spor file (or other supported format) you think?

Thanks!


RE: New: .spoR manipulation tool - Crimson Nape - 10-23-2023

Download OSCAR source code. It has several pieces of code for several oximeters. Look in oscar > SleepLib > loader_plugins.

- Red