Skip to content

Commit

Permalink
Merge pull request #121 from SINTEF/meta.sintef.no_to_onto-ns.com
Browse files Browse the repository at this point in the history
Bump up version to 0.3.0
  • Loading branch information
lovfall authored Jul 8, 2021
2 parents e0c4421 + 1498755 commit dfdd27f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cmake_minimum_required(VERSION 3.14)

project(dlite
VERSION 0.2.7
VERSION 0.3.0
DESCRIPTION "Lightweight data-centric framework for working with scientific data"
HOMEPAGE_URL "https://github.com/SINTEF/dlite"
LANGUAGES C
Expand Down
6 changes: 3 additions & 3 deletions src/dlite-storage-plugins.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ char *dlite_storage_plugin_path_string(void)
If `n` is out of range, it is clipped.
Returns non-zero on error.
Returns the index of the newly inserted element or -1 on error.
*/
int dlite_storage_plugin_path_insert(int n, const char *path)
{
Expand All @@ -254,7 +254,7 @@ int dlite_storage_plugin_path_insert(int n, const char *path)
/*
Appends `path` into the current search path.
Returns non-zero on error.
Returns the index of the newly appended element or -1 on error.
*/
int dlite_storage_plugin_path_append(const char *path)
{
Expand All @@ -267,7 +267,7 @@ int dlite_storage_plugin_path_append(const char *path)
Like dlite_storage_plugin_path_append(), but appends at most the
first `n` bytes of `path` to the current search path.
Returns non-zero on error.
Returns the index of the newly appended element or -1 on error.
*/
int dlite_storage_plugin_path_appendn(const char *path, size_t n)
{
Expand Down
2 changes: 2 additions & 0 deletions storages/python/tests/test_postgresql_storage.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ MU_TEST(test_save)
float age = 42.;
const char *skills[] = {"jumping", "hopping"};
int n, i;
char *paths = STRINGIFY(dlite_SOURCE_DIR) "/storage/python/tests/*.json";
mu_check(dlite_storage_plugin_path_append(paths) >= 0);
mu_check((meta = dlite_instance_load_url("json://Person.json?mode=r")));
mu_check((inst = dlite_instance_create((DLiteMeta *)meta, dims, "ada")));
mu_assert_int_eq(0, dlite_instance_set_property(inst, "name", &name));
Expand Down
2 changes: 1 addition & 1 deletion tools/tests/Chemistry-0.1.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@
}
],
"dataname": "http://sintef.no/calm/0.1/Chemistry"
}
}

0 comments on commit dfdd27f

Please sign in to comment.