Skip to content

Commit

Permalink
Renamed function that was not yet camelCased.
Browse files Browse the repository at this point in the history
  • Loading branch information
LTLA committed Jul 20, 2023
1 parent 6421b66 commit 1613573
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion js/hdf5.js
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ export class H5File extends H5Group {
* @return {H5File} A new file is created at `path`.
* A {@linkplain H5File} object is returned.
*/
export function createNewHDF5File(path) {
export function createNewHdf5File(path) {
wasm.call(module => module.create_hdf5_file(path));
return new H5File(path, { newlyCreated: true });
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scran.js",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.2",
"description": "Single cell RNA-seq analysis in Javascript",
"license": "MIT",
"main": "main/index.js",
Expand Down
16 changes: 8 additions & 8 deletions tests/hdf5.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test("HDF5 group creation works as expected", () => {
purge(path)

// Nested group creation works.
let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
expect(fhandle.children).toEqual({});

let ghandle = fhandle.createGroup("foo");
Expand All @@ -158,7 +158,7 @@ test("HDF5 numeric dataset creation works as expected", () => {
const path = dir + "/test.write.h5";
purge(path)

let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
let ghandle = fhandle.createGroup("foo");
let ghandle2 = ghandle.createGroup("bar");

Expand Down Expand Up @@ -249,7 +249,7 @@ test("HDF5 string dataset creation works as expected", () => {
const path = dir + "/test.write.h5";
purge(path)

let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
let ghandle = fhandle.createGroup("foo");

// Checking the writing of strings.
Expand Down Expand Up @@ -291,7 +291,7 @@ test("HDF5 enum dataset creation and loading works as expected", () => {
const path = dir + "/test.write.h5";
purge(path)

let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);

// Using the auto-leveller.
{
Expand Down Expand Up @@ -322,7 +322,7 @@ test("HDF5 64-bit integer dataset creation works as expected", () => {
purge(path)

{
let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
fhandle.writeDataSet("stuffi", "Int64", null, [1,2,3,4,5]);
fhandle.writeDataSet("stuffu", "Uint64", null, [6,7,8,9,10]);
}
Expand All @@ -345,7 +345,7 @@ test("HDF5 numeric attribute creation and loading works as expected", () => {
const path = dir + "/test.write.h5";
purge(path)

let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
let ghandle = fhandle.createGroup("foo");

// Creation of numeric attributes works correctly.
Expand Down Expand Up @@ -403,7 +403,7 @@ test("HDF5 string attribute creation and loading works as expected", () => {
const path = dir + "/test.write.h5";
purge(path)

let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
let dhandle = fhandle.writeDataSet("stuffX", "Int32", null, [1,2,3,4,5]);

let colleagues = ["Allison", "Aaron", "Jayaram", "Michael", "Sebastien"]; // ranked by age.
Expand All @@ -425,7 +425,7 @@ test("HDF5 enum attribute creation and loading works as expected", () => {
const path = dir + "/test.write.h5";
purge(path)

let fhandle = scran.createNewHDF5File(path);
let fhandle = scran.createNewHdf5File(path);
let dhandle = fhandle.writeDataSet("stuffX", "Int32", null, [1,2,3,4,5]);

// Using the auto-leveller.
Expand Down

0 comments on commit 1613573

Please sign in to comment.