SIRF icon indicating copy to clipboard operation
SIRF copied to clipboard

_storage_scheme -> _default_storage_scheme

Open rijobro opened this issue 4 years ago • 4 comments

fixes https://github.com/SyneRBI/SIRF/issues/715.

@evgueni-ovtchinnikov how about this. Change _storage_scheme to _default_storage_scheme. If using the static method, return the default. However, if the object exists, return the corresponding type.

I've added the test, which fails with the old code, but passes with these changes:

    AcquisitionData.set_storage_scheme("memory")
    ad = AcquisitionData(raw_data_file)
    AcquisitionData.set_storage_scheme("file")
    test.check_if_equal("memory", ad.get_storage_scheme())

rijobro avatar Jun 12 '20 09:06 rijobro