Data generation for detectors #481
-
Hi All, I'm currently preparing a pull request which will add some basic detectors (beamformers) for sonar data. This work is an output of Project BLUE, for which there was a "Show and Tell" event earlier this week that some may have attended. I've been following the contributing guide and have a question regarding the tests. The code I currently have reads directly from a pre-generated csv file (containing either externally measured or simulated data) and transforms this to a set of detections. However, it seems that the standard within Stone-Soup is to generate test data internally. So far I have only seen this done for detections / target tracks - I'm not sure what the equivalent should be when testing a detector method with the function of generating these detections. My guess is that I need to include some simulator method to generate the raw sonar data so that it is possible to run tests and tutorials / demonstrations within Stone-Soup with out dependance on externally-generated data. Is this right or would anyone advise a different approach? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I received guidance from the developers here
I use pygtaild to monitor the end of the CSV file, it is pretty flexible and allows checkpointing and read from start, etc. There may be more details on the Q&A in the gitter channel https://gitter.im/dstl/Stone-Soup @sdhiscocks will probably reply with more insight. |
Beta Was this translation helpful? Give feedback.
-
I think for tests it may be best to take a small subsample of your sensor data (simulated or measured; enough to show detector working as expected) and put it in alongside the test script in the test folder. You should be able to get the path to the file with something like: |
Beta Was this translation helpful? Give feedback.
I think for tests it may be best to take a small subsample of your sensor data (simulated or measured; enough to show detector working as expected) and put it in alongside the test script in the test folder.
You should be able to get the path to the file with something like:
os.path.join(os.path.dirname(__file__), "my_test_file.txt")