Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chaoming0625 committed Jan 15, 2025
1 parent e9fb3e3 commit fa4dc87
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions brainunit/_base_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@
# limitations under the License.
# ==============================================================================

from __future__ import annotations

import itertools
import os
import pickle
import sys
import tempfile

os.environ['JAX_TRACEBACK_FILTERING'] = 'off'
import itertools
import unittest
import warnings
from copy import deepcopy
from typing import Union

import brainstate as bst
import jax
import jax.numpy as jnp
import numpy as np
import pytest
from numpy.testing import assert_equal
from typing import Union

import brainunit as u
from brainunit._base import (
Expand All @@ -49,7 +50,6 @@
)
from brainunit._unit_common import *
from brainunit._unit_shortcuts import kHz, ms, mV, nS
import pickle


class TestDimension(unittest.TestCase):
Expand Down Expand Up @@ -902,6 +902,9 @@ def test_to(self):
print(x.to(u.uvolt))

def test_quantity_type(self):

# if sys.version_info >= (3, 11):

def f1(a: u.Quantity[u.ms]) -> u.Quantity[u.mV]:
return a

Expand Down

0 comments on commit fa4dc87

Please sign in to comment.