barbaLab / nigeLab

Neurophysiological data analyses by engineers, for physiologists.
GNU General Public License v3.0
14 stars 2 forks source link

Add memory allocation compatibility for Unix platform. #4

Closed m053m716 closed 5 years ago

m053m716 commented 5 years ago

Problem Matlab cannot perform dynamic memory allocation for the MatFile using Unix platform.

Solution Either a fixed "chunk size" that is easy to modify when creating DiskData, or some method that interacts with a system command to get the appropriate memory allocation on Unix platforms.

Context Nobody so far has used Mac to run this pipeline.

m053m716 commented 5 years ago

Preliminary update added using Mac OSX system control command, but unsure of format of returned command output (whether it will return a string or numeric value). Needs to be tested on a Mac device.

m053m716 commented 5 years ago

Bugfix was tested on Unix device and appears to be working correctly. Command output (number of bytes available) was returned as a string; after conversion to double code works as intended.