Skip to content

Commit

Permalink
Merge pull request datajoint#98 from guzman-raphael/stage
Browse files Browse the repository at this point in the history
Add `MYM_` env var prefix, bump versions, update binaries
  • Loading branch information
guzman-raphael authored Mar 9, 2022
2 parents 158e091 + 5816c0f commit 7de4740
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion LNX-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ services:
- MYSQL_ROOT_PASSWORD=simple
fakeservices.datajoint.io:
<<: *net
image: datajoint/nginx:v0.0.16
image: datajoint/nginx:v0.1.1
environment:
- ADD_db_TYPE=DATABASE
- ADD_db_ENDPOINT=db:3306
Expand Down
Binary file modified distribution/mexa64/mym.mexa64
Binary file not shown.
Binary file modified distribution/mexmaci64/mym.mexmaci64
Binary file not shown.
Binary file modified distribution/mexw64/mym.mexw64
Binary file not shown.
2 changes: 1 addition & 1 deletion local-docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ services:
# - ./mysql/data:/var/lib/mysql
fakeservices.datajoint.io:
<<: *net
image: datajoint/nginx:v0.0.16
image: datajoint/nginx:v0.1.1
environment:
- ADD_db_TYPE=DATABASE
- ADD_db_ENDPOINT=db:3306
Expand Down
6 changes: 3 additions & 3 deletions src/mym.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,11 +360,11 @@ static void updateplugindir() {
}
/**********************************************************************
*use32bitdims(): Check if dimensions should be read as 32-bit
* Get USE_32_BIT_DIMS environment variable
* Return true/false based on USE_32_BIT_DIMS flag
* Get MYM_USE_32BIT_DIMS environment variable
* Return true/false based on MYM_USE_32BIT_DIMS flag
**********************************************************************/
static bool use32bitdims() {
return getenv("USE_32BIT_DIMS") && strcasecmp(getenv("USE_32BIT_DIMS"), "true") == 0;
return getenv("MYM_USE_32BIT_DIMS") && strcasecmp(getenv("MYM_USE_32BIT_DIMS"), "true") == 0;
}
/**********************************************************************
* mysql(): Execute the actual action
Expand Down
2 changes: 1 addition & 1 deletion src/mym.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
// mym version information
#define MYM_VERSION_MAJOR 2
#define MYM_VERSION_MINOR 8
#define MYM_VERSION_BUGFIX 4
#define MYM_VERSION_BUGFIX 5


// some local defintion
Expand Down
4 changes: 2 additions & 2 deletions tests/TestExternal.m
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ function TestExternal_test32BitRead(testCase)
data.sides = 'llllrrl';
data.hits = [NaN,1,1,0,1,0,NaN];

setenv('USE_32BIT_DIMS', 'true');
setenv('MYM_USE_32BIT_DIMS', 'true');
unpacked = mym('deserialize', packed);
setenv('USE_32BIT_DIMS', 'false');
setenv('MYM_USE_32BIT_DIMS', 'false');

testCase.verifyEqual(unpacked, data);
end
Expand Down

0 comments on commit 7de4740

Please sign in to comment.