Skip to content

Commit

Permalink
Minor changes for tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
manoskary committed Jul 18, 2024
1 parent 1c0513a commit 1bfac07
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/unit_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ jobs:
shell: bash
- name: Test with pytest
run: |
python -m unittest discover ./tests/ 'test*.py'
cd tests
python -m unittest discover . 'test*.py'
shell: bash
2 changes: 2 additions & 0 deletions graphmuse/loader/neighbor_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ def sample_hetero_graph(self, data, target_nodes, colptr_dict, row_dict, to_edge
self.num_neighbors.get_mapped_values(data.edge_types),
self.node_time,
)
if torch_geometric.typing.WITH_EDGE_TIME_NEIGHBOR_SAMPLE:
args += (self.edge_time,)
# Setting to None
seed_time = None
args += (seed_time,)
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@

ext_modules = [
setuptools.Extension(
name="graphmuse.samplers.csamplers", sources=[os.path.join("src", "gmsamplersmodule.c")], extra_compile_args = eca,
name="graphmuse.samplers.csamplers", sources=[os.path.join(os.path.dirname(__file__), "src", "gmsamplersmodule.c")],
extra_link_args = [], include_dirs=[os.path.join(numpy.get_include(), "numpy"), "include"])]

# os.environ["CC"] = "gcc"
Expand All @@ -42,7 +42,7 @@
long_description = open(os.path.join(os.path.dirname(__file__), 'README.md'), "r").read()

setuptools.setup(
name='GraphMuse',
name='graphmuse',
version='0.0.1',
description='GraphMuse is a Python Library for Graph Deep Learning on Symbolic Music.',
long_description=long_description,
Expand Down

0 comments on commit 1bfac07

Please sign in to comment.