Skip to content

Commit

Permalink
Bump version to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
an-seunghwan committed Dec 19, 2024
1 parent 200187f commit 62fdb31
Show file tree
Hide file tree
Showing 2 changed files with 75 additions and 4 deletions.
75 changes: 73 additions & 2 deletions example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,78 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\n",
"A module that was compiled using NumPy 1.x cannot be run in\n",
"NumPy 2.2.0 as it may crash. To support both 1.x and 2.x\n",
"versions of NumPy, modules must be compiled with NumPy 2.0.\n",
"Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.\n",
"\n",
"If you are a user of the module, the easiest solution will be to\n",
"downgrade to 'numpy<2' or try to upgrade the affected module.\n",
"We expect that some modules will need time to support NumPy 2.\n",
"\n",
"Traceback (most recent call last): File \"<frozen runpy>\", line 198, in _run_module_as_main\n",
" File \"<frozen runpy>\", line 88, in _run_code\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel_launcher.py\", line 18, in <module>\n",
" app.launch_new_instance()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/traitlets/config/application.py\", line 1075, in launch_instance\n",
" app.start()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/kernelapp.py\", line 739, in start\n",
" self.io_loop.start()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/tornado/platform/asyncio.py\", line 205, in start\n",
" self.asyncio_loop.run_forever()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/asyncio/base_events.py\", line 608, in run_forever\n",
" self._run_once()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/asyncio/base_events.py\", line 1936, in _run_once\n",
" handle._run()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/asyncio/events.py\", line 84, in _run\n",
" self._context.run(self._callback, *self._args)\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/kernelbase.py\", line 545, in dispatch_queue\n",
" await self.process_one()\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/kernelbase.py\", line 534, in process_one\n",
" await dispatch(*args)\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/kernelbase.py\", line 437, in dispatch_shell\n",
" await result\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/ipkernel.py\", line 362, in execute_request\n",
" await super().execute_request(stream, ident, parent)\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/kernelbase.py\", line 778, in execute_request\n",
" reply_content = await reply_content\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/ipkernel.py\", line 449, in do_execute\n",
" res = shell.run_cell(\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/ipykernel/zmqshell.py\", line 549, in run_cell\n",
" return super().run_cell(*args, **kwargs)\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/IPython/core/interactiveshell.py\", line 3006, in run_cell\n",
" result = self._run_cell(\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/IPython/core/interactiveshell.py\", line 3061, in _run_cell\n",
" result = runner(coro)\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/IPython/core/async_helpers.py\", line 129, in _pseudo_sync_runner\n",
" coro.send(None)\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/IPython/core/interactiveshell.py\", line 3266, in run_cell_async\n",
" has_raised = await self.run_ast_nodes(code_ast.body, cell_name,\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/IPython/core/interactiveshell.py\", line 3445, in run_ast_nodes\n",
" if await self.run_code(code, result, async_=asy):\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/IPython/core/interactiveshell.py\", line 3505, in run_code\n",
" exec(code_obj, self.user_global_ns, self.user_ns)\n",
" File \"/var/folders/2j/hydd0b_50k70xrx1n1bs1ws40000gn/T/ipykernel_68227/3618652993.py\", line 5, in <module>\n",
" import torch\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/torch/__init__.py\", line 1477, in <module>\n",
" from .functional import * # noqa: F403\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/torch/functional.py\", line 9, in <module>\n",
" import torch.nn.functional as F\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/torch/nn/__init__.py\", line 1, in <module>\n",
" from .modules import * # noqa: F403\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/torch/nn/modules/__init__.py\", line 35, in <module>\n",
" from .transformer import TransformerEncoder, TransformerDecoder, \\\n",
" File \"/opt/anaconda3/envs/test/lib/python3.11/site-packages/torch/nn/modules/transformer.py\", line 20, in <module>\n",
" device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),\n"
]
}
],
"source": [
"import warnings\n",
"warnings.filterwarnings('ignore')\n",
Expand Down Expand Up @@ -642,7 +713,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.16"
"version": "3.11.11"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "macode"
version = "0.2.1"
version = "0.2.2"
description = "Package for Implementing MaCoDE"
authors = ["an-seunghwan <dpeltms79@gmail.com>"]
license = "MIT"
Expand All @@ -10,7 +10,7 @@ readme = "README.md"
python = "^3.10"
geomloss = "0.2.6"
matplotlib = "3.10.0"
numpy = "2.2.0"
numpy = "1.26.4"
pandas = "2.2.3"
pillow = "11.0.0"
scikit-learn = "1.6.0"
Expand Down

0 comments on commit 62fdb31

Please # to comment.