Skip to content

Instantly share code, notes, and snippets.

@thesamovar
Created August 27, 2018 16:12
Show Gist options
  • Save thesamovar/a2f18ae1f326c6638b0c0d0f87b92f30 to your computer and use it in GitHub Desktop.
Save thesamovar/a2f18ae1f326c6638b0c0d0f87b92f30 to your computer and use it in GitHub Desktop.
C:\Anaconda\python.exe D:/programming/brian2/dev/tools/run_nose_tests_long_and_standalone.py
INFO Cache size for target "cython": 1594 MB.
You can call "clear_cache('cython')" to delete all files from the cache or manually delete files in the "C:\Users\dgoodman\.cython\brian_extensions" directory. [brian2]
Running tests in D:\programming\brian2\brian2 for targets numpy, weave, cython (including long tests)
Testing standalone
Testing codegen-independent code
Resetting to default preferences
Setting dtype for floating point variables to: float32
Running tests that do not use code generation
Doctest: brian2.codegen.optimisation.reduced_node ... ok
Doctest: brian2.codegen.runtime.numpy_rt.numpy_rt.LazyArange ... ok
Doctest: brian2.core.clocks.check_dt ... ok
Doctest: brian2.core.network._format_time ... ok
Doctest: brian2.core.operations.network_operation ... ok
Doctest: brian2.core.preferences.parse_preference_name ... ok
Doctest: brian2.core.variables.linked_var ... ok
Doctest: brian2.input.timedarray.TimedArray ... ok
Doctest: brian2.memory.dynamicarray.DynamicArray ... ok
Doctest: brian2.monitors.spikemonitor.EventMonitor.all_values ... ok
Doctest: brian2.monitors.spikemonitor.EventMonitor.values ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor.all_values ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor.spike_trains ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor.values ... ok
Doctest: brian2.monitors.statemonitor.StateMonitor.record_single_timestep ... ok
Doctest: brian2.parsing.statements.parse_statement ... ok
SKIP: Do not test sphinx extension
Doctest: brian2.stateupdaters.base.extract_method_options ... ok
Doctest: brian2.stateupdaters.explicit.ExplicitStateUpdater.__call__ ... ok
Doctest: brian2.stateupdaters.explicit.split_expression ... ok
Doctest: brian2.stateupdaters.exponential_euler.get_conditionally_linear_system ... ok
Doctest: brian2.units.fundamentalunits.Quantity ... ok
Doctest: brian2.units.fundamentalunits.Quantity.dot ... ok
Doctest: brian2.units.fundamentalunits.Quantity.fill ... ok
Doctest: brian2.units.fundamentalunits.Quantity.in_best_unit ... ok
Doctest: brian2.units.fundamentalunits.Quantity.in_unit ... ok
Doctest: brian2.units.fundamentalunits.Quantity.with_dimensions ... ok
Doctest: brian2.units.fundamentalunits.Unit ... ok
Doctest: brian2.units.fundamentalunits.check_units ... ok
Doctest: brian2.units.fundamentalunits.get_or_create_dimension ... ok
Doctest: brian2.units.fundamentalunits.in_best_unit ... ok
Doctest: brian2.units.fundamentalunits.in_unit ... ok
Doctest: brian2.units.fundamentalunits.quantity_with_dimensions ... ok
Doctest: brian2.units.fundamentalunits.register_new_unit ... ok
SKIP: Do not test numpy docstrings
Doctest: brian2.utils.arrays.calc_repeats ... ok
Doctest: brian2.utils.logger.catch_logs ... ok
Doctest: brian2.utils.stringtools.deindent ... ok
Doctest: brian2.utils.stringtools.get_identifiers ... ok
Doctest: brian2.utils.stringtools.indent ... ok
Doctest: brian2.utils.stringtools.strip_empty_lines ... ok
Doctest: brian2.utils.stringtools.word_substitute ... ok
brian2.tests.test_GSL.test_GSL_internal_variable ... ok
brian2.tests.test_GSL.test_GSL_stochastic ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
ok
brian2.tests.test_GSL.test_GSL_failing_directory ... ok
brian2.tests.test_base.test_base ... ok
brian2.tests.test_base.test_names ... ok
brian2.tests.test_base.test_duplicate_names ... ok
brian2.tests.test_clocks.test_clock_attributes ... ok
brian2.tests.test_clocks.test_clock_dt_change ... ok
brian2.tests.test_clocks.test_defaultclock ... ok
brian2.tests.test_clocks.test_set_interval_warning ... ok
brian2.tests.test_codegen.test_auto_target ... ok
Test that the analyse_identifiers function works on a simple clear example. ... ok
Test finding identifiers including subexpressions. ... ok
brian2.tests.test_codegen.test_write_to_subexpression ... ok
brian2.tests.test_codegen.test_repeated_subexpressions ... ok
This test checks that code translation works with nested subexpressions. ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_integer ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_boolean ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_no_optimisation ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_simplification ... WARNING The expression "i1 / 1" divides two integer values. In previous versions of Brian, this would have used either an integer ("flooring") or a floating point division, depending on the Python version and the code generation target. In the current version, it always uses a floating point division. Explicitly ask for an integer division ("//"), or turn one of the operands into a floating point value (e.g. replace "1/2" by "1.0/2") to no longer receive this warning. [brian2.parsing.bast.floating_point_division]
ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_constant_evaluation ... ok
brian2.tests.test_codegen.test_automatic_augmented_assignments ... ok
Test creating expressions. ... ok
brian2.tests.test_codestrings.test_split_stochastic ... ok
Test the string representation of expressions and statements. Assumes that ... ok
brian2.tests.test_devices.test_set_reset_device_implicit ... ok
brian2.tests.test_devices.test_set_reset_device_explicit ... ok
brian2.tests.test_equations.test_utility_functions ... ok
brian2.tests.test_equations.test_identifier_checks ... ok
Test the parsing of equation strings ... ok
Test replacing variables via keyword arguments ... ok
Tests for replacements that should not work ... ok
brian2.tests.test_equations.test_substitute ... ok
Test that the Equations constructor raises errors correctly ... ok
brian2.tests.test_equations.test_unit_checking ... ok
Test accessing the various properties of equation objects ... ok
brian2.tests.test_equations.test_concatenation ... ok
brian2.tests.test_equations.test_extract_subexpressions ... ok
brian2.tests.test_equations.test_repeated_construction ... ok
Test the string representation (only that it does not throw errors). ... ok
brian2.tests.test_equations.test_ipython_pprint ... ok
Make sure that symbolic constants are understood correctly by sympy ... ok
brian2.tests.test_functions.test_timestep_function ... ok
brian2.tests.test_functions.test_user_defined_function_discarding_units ... ok
brian2.tests.test_functions.test_user_defined_function_discarding_units_2 ... ok
brian2.tests.test_functions.test_function_implementation_container ... ok
brian2.tests.test_memory.test_dynamic_array_1d_access ... ok
brian2.tests.test_memory.test_dynamic_array_1d_resize_up_down ... ok
brian2.tests.test_memory.test_dynamic_array_1d_resize_down_up ... ok
brian2.tests.test_memory.test_dynamic_array_1d_shrink ... ok
brian2.tests.test_memory.test_dynamic_array_2d_access ... ok
brian2.tests.test_memory.test_dynamic_array_2d_resize_up_down ... ok
brian2.tests.test_memory.test_dynamic_array_2d_resize_down_up ... ok
brian2.tests.test_memory.test_dynamic_array_2d_shrink ... ok
brian2.tests.test_monitor.test_rate_monitor_smoothed_rate ... ok
brian2.tests.test_monitor.test_rate_monitor_smoothed_rate_incorrect ... ok
brian2.tests.test_morphology.test_attributes_soma ... ok
brian2.tests.test_morphology.test_attributes_soma_coordinates ... ok
brian2.tests.test_morphology.test_attributes_cylinder ... ok
brian2.tests.test_morphology.test_attributes_cylinder_coordinates ... ok
brian2.tests.test_morphology.test_attributes_section ... ok
brian2.tests.test_morphology.test_attributes_section_coordinates_single ... ok
brian2.tests.test_morphology.test_attributes_section_coordinates_all ... ok
brian2.tests.test_morphology.test_tree_cables_schematic ... ok
brian2.tests.test_morphology.test_tree_cables_coordinates ... ok
brian2.tests.test_morphology.test_tree_cables_from_points ... ok
brian2.tests.test_morphology.test_tree_soma_schematic ... ok
brian2.tests.test_morphology.test_tree_soma_coordinates ... ok
brian2.tests.test_morphology.test_tree_soma_from_points ... ok
brian2.tests.test_morphology.test_tree_soma_from_points_3_point_soma ... ok
brian2.tests.test_morphology.test_tree_soma_from_points_3_point_soma_incorrect ... ok
brian2.tests.test_morphology.test_tree_soma_from_swc ... ok
brian2.tests.test_morphology.test_tree_soma_from_swc_3_point_soma ... ok
brian2.tests.test_morphology.test_construction_incorrect_arguments ... ok
brian2.tests.test_morphology.test_from_points_minimal ... ok
brian2.tests.test_morphology.test_from_points_incorrect ... ok
brian2.tests.test_morphology.test_subtree_deletion ... ok
brian2.tests.test_morphology.test_subgroup_indices ... ok
brian2.tests.test_morphology.test_subgroup_attributes ... ok
brian2.tests.test_morphology.test_subgroup_incorrect ... ok
brian2.tests.test_morphology.test_topology ... ok
brian2.tests.test_morphology.test_copy_section_soma ... ok
brian2.tests.test_morphology.test_copy_section_section ... ok
brian2.tests.test_morphology.test_copy_section_cylinder ... ok
brian2.tests.test_morphology.test_generate_coordinates_deterministic ... ok
brian2.tests.test_morphology.test_generate_coordinates_random_sections ... ok
brian2.tests.test_morphology.test_generate_coordinates_random_compartments ... ok
brian2.tests.test_morphology.test_generate_coordinates_random_all ... ok
brian2.tests.test_morphology.test_generate_coordinates_no_overwrite ... ok
brian2.tests.test_morphology.test_generate_coordinates_overwrite ... ok
brian2.tests.test_morphology.test_generate_coordinates_mixed_overwrite ... ok
brian2.tests.test_morphology.test_str_repr ... ok
Test that the default namespace contains standard units and functions. ... ok
Test resolution with an explicitly provided namespace ... ok
brian2.tests.test_namespaces.test_errors ... ok
brian2.tests.test_namespaces.test_resolution ... ok
brian2.tests.test_namespaces.test_warning ... ok
brian2.tests.test_namespaces.test_warning_internal_variables ... ok
Test some wrong uses of `Network` and `MagicNetwork` ... ok
Test `Network.__contains__`. ... ok
brian2.tests.test_network.test_empty_network ... ok
brian2.tests.test_network.test_network_single_object ... ok
brian2.tests.test_network.test_network_two_objects ... ok
brian2.tests.test_network.test_network_from_dict ... ok
brian2.tests.test_network.test_network_different_clocks ... ok
brian2.tests.test_network.test_network_different_when ... ok
brian2.tests.test_network.test_network_default_schedule ... ok
brian2.tests.test_network.test_network_schedule_change ... ok
brian2.tests.test_network.test_network_before_after_schedule ... ok
brian2.tests.test_network.test_network_custom_slots ... ok
brian2.tests.test_network.test_network_incorrect_schedule ... ok
brian2.tests.test_network.test_schedule_warning ... ok
brian2.tests.test_network.test_scheduling_summary_magic ... ok
brian2.tests.test_network.test_scheduling_summary ... ok
brian2.tests.test_network.test_magic_network ... ok
brian2.tests.test_network.test_network_stop ... ok
brian2.tests.test_network.test_network_operations ... ok
brian2.tests.test_network.test_incorrect_network_operations ... ok
brian2.tests.test_network.test_network_active_flag ... ok
brian2.tests.test_network.test_network_t ... ok
brian2.tests.test_network.test_incorrect_dt_defaultclock ... ok
brian2.tests.test_network.test_incorrect_dt_custom_clock ... ok
brian2.tests.test_network.test_network_remove ... ok
brian2.tests.test_network.test_invalid_magic_network ... ok
brian2.tests.test_network.test_multiple_networks_invalid ... ok
Test that holding a weak reference to an object does not make it get ... ok
Test that creating unused objects does not affect the magic system. ... ok
brian2.tests.test_network.test_network_access ... ok
brian2.tests.test_network.test_dependency_check ... ok
Make sure all expected objects are collected in a magic network ... ok
Very basic test of progress reporting ... ok
Test wrong use of the report option ... ok
brian2.tests.test_network.test_store_restore ... ok
brian2.tests.test_network.test_store_restore_to_file ... ok
brian2.tests.test_network.test_store_restore_to_file_new_objects ... ok
brian2.tests.test_network.test_store_restore_to_file_differing_nets ... ok
brian2.tests.test_network.test_store_restore_magic ... ok
brian2.tests.test_network.test_store_restore_magic_to_file ... ok
brian2.tests.test_network.test_store_restore_spikequeue ... ok
brian2.tests.test_network.test_defaultclock_dt_changes ... ok
brian2.tests.test_network.test_dt_restore ... ok
brian2.tests.test_network.test_continuation ... ok
brian2.tests.test_network.test_get_set_states ... ok
brian2.tests.test_network.test_multiple_runs_defaultclock ... ok
brian2.tests.test_network.test_multiple_runs_defaultclock_incorrect ... ok
brian2.tests.test_network.test_profile_ipython_html ... ok
Check that `start_scope` works as expected. ... ok
brian2.tests.test_network.test_small_runs ... WARNING The expression "(i + 1) / N" divides two integer values. In previous versions of Brian, this would have used either an integer ("flooring") or a floating point division, depending on the Python version and the code generation target. In the current version, it always uses a floating point division. Explicitly ask for an integer division ("//"), or turn one of the operands into a floating point value (e.g. replace "1/2" by "1.0/2") to no longer receive this warning. [brian2.parsing.bast.floating_point_division]
ok
brian2.tests.test_network.test_long_run_dt_change ... ok
A basic test that creating a NeuronGroup works. ... ok
Test that integer operations and variable definitions work. ... ok
Test the correct creation of the variables dictionary. ... ok
brian2.tests.test_neurongroup.test_variableview_calculations ... ok
Test incorrect uses of linked variables. ... ok
Test linking a variable with an index specified as an array ... ok
Test a "repeat"-like connection between two groups of different size ... ok
Linked to a linked variable, without indices ... ok
Linked to a linked variable, first without indices, second with indices ... ok
Linked to a linked variable, first with indices, second without indices ... ok
Linked to a linked variable, both use indices ... ok
Link to a linked variable that links to a linked variable, all use indices ... ok
Test linking a variable from a subgroup ... ok
Test linking a variable from a subgroup with indexing ... ok
Test errors when providing incorrect index arrays ... ok
Test linking to a synaptic variable (should raise an error). ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset_incorrect ... ok
Test that the namespace does not have to be complete at creation time. ... ok
brian2.tests.test_neurongroup.test_namespace_errors ... ok
brian2.tests.test_neurongroup.test_namespace_warnings ... ok
Test that unit errors in thresholds and resets are detected. ... ok
Test that syntax errors are already caught at initialization time. ... ok
brian2.tests.test_neurongroup.test_custom_events ... ok
brian2.tests.test_neurongroup.test_incorrect_custom_event_definition ... ok
brian2.tests.test_neurongroup.test_state_variable_access ... ok
brian2.tests.test_neurongroup.test_unknown_state_variables ... ok
brian2.tests.test_neurongroup.test_subexpression ... ok
brian2.tests.test_neurongroup.test_subexpression_with_constant ... ok
brian2.tests.test_neurongroup.test_scalar_parameter_access ... ok
brian2.tests.test_neurongroup.test_scalar_subexpression ... ok
brian2.tests.test_neurongroup.test_constant_subexpression_order ... ok
brian2.tests.test_neurongroup.test_subexpression_checks ... ok
brian2.tests.test_neurongroup.test_repr ... ok
brian2.tests.test_neurongroup.test_ipython_html ... ok
brian2.tests.test_neurongroup.test_indices ... ok
Check the utility function get_dtype ... ok
brian2.tests.test_neurongroup.test_get_states ... ok
brian2.tests.test_neurongroup.test_set_states ... ok
brian2.tests.test_neurongroup.test_get_states_pandas ... ok
brian2.tests.test_neurongroup.test_set_states_pandas ... ok
brian2.tests.test_neurongroup.test_no_code ... ok
brian2.tests.test_parsing.test_parse_expressions_python ... ok
brian2.tests.test_parsing.test_parse_expressions_numpy ... ok
brian2.tests.test_parsing.test_parse_expressions_sympy ... ok
brian2.tests.test_parsing.test_abstract_code_dependencies ... ok
brian2.tests.test_parsing.test_is_boolean_expression ... ok
brian2.tests.test_parsing.test_parse_expression_unit ... ok
brian2.tests.test_parsing.test_value_from_expression ... ok
brian2.tests.test_parsing.test_abstract_code_from_function ... ok
brian2.tests.test_parsing.test_extract_abstract_code_functions ... ok
brian2.tests.test_parsing.test_substitute_abstract_code_functions ... ok
brian2.tests.test_parsing.test_sympytools ... ok
brian2.tests.test_parsing.test_error_messages ... ok
brian2.tests.test_poissongroup.test_rate_unit_check ... ok
brian2.tests.test_poissongroup.test_poissongroup_namespace ... ok
brian2.tests.test_poissoninput.test_poissoninput_errors ... ok
brian2.tests.test_preferences.test_defaultvalidator ... ok
brian2.tests.test_preferences.test_brianpreference ... ok
Test that you cannot set illegal preference names. ... ok
brian2.tests.test_preferences.test_brianglobalpreferences ... ok
Test various ways of accessing preferences ... ok
brian2.tests.test_preferences.test_str_repr ... ok
brian2.tests.test_refractory.test_add_refractoriness ... ok
brian2.tests.test_refractory.test_missing_refractory_warning ... ok
brian2.tests.test_refractory.test_refractoriness_types ... ok
Test that the conditional_write attribute is set correctly ... ok
brian2.tests.test_spatialneuron.test_custom_events ... ok
brian2.tests.test_spatialneuron.test_construction ... ok
brian2.tests.test_spatialneuron.test_construction_coordinates ... ok
brian2.tests.test_spatialneuron.test_allowed_integration ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_indexing ... ok
brian2.tests.test_spatialneuron.test_tree_index_consistency ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_subtree_assignment ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_morphology_assignment ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_incorrect_values ... ok
Test that you cannot provide incorrect period arguments or combine ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_multiple_spikes_per_bin ... ok
brian2.tests.test_spikequeue.test_spikequeue ... ok
Test the parsing of explicit state updater descriptions. ... ok
brian2.tests.test_stateupdaters.test_non_autonomous_equations ... ok
Assure that __str__ and __repr__ do not raise errors ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_basic ... ok
Make sure that the code does the distinction between temporary variables ... ok
Make sure that the code does the distinction between temporary variables ... ok
Check whether the returned abstract code is as expected. ... ok
Test integration for a simple model with several state variables. ... ok
brian2.tests.test_stateupdaters.test_illegal_calls ... ok
brian2.tests.test_stateupdaters.test_priority ... ok
Test state updater registration. ... ok
Test the determination of suitable state updaters. ... WARNING The 'independent' state updater is deprecated and might be removed in future versions of Brian. [brian2.stateupdaters.exact.deprecated_independent]
ok
brian2.tests.test_stateupdaters.test_locally_constant_check ... ok
Test the string representation of a subgroup. ... ok
brian2.tests.test_subgroup.test_state_variables_group_as_index ... ok
brian2.tests.test_subgroup.test_state_variables_group_as_index_problematic ... ok
brian2.tests.test_subgroup.test_synapses_access_subgroups_problematic ... ok
brian2.tests.test_subgroup.test_wrong_indexing ... ok
A basic test that creating a Synapses object works. ... ok
brian2.tests.test_synapses.test_creation_errors ... ok
brian2.tests.test_synapses.test_name_clashes ... ok
brian2.tests.test_synapses.test_equations_unit_check ... ok
brian2.tests.test_synapses.test_pre_before_post ... ok
brian2.tests.test_synapses.test_invalid_custom_event ... ok
Make sure that a `Synapse` object uses the correct clocks. ... ok
brian2.tests.test_synapses.test_no_synapses ... ok
brian2.tests.test_synapses.test_no_synapses_variable_write ... ok
brian2.tests.test_synapses.test_multiple_summed_variables ... ok
brian2.tests.test_synapses.test_summed_variables_overlapping_subgroups ... ok
brian2.tests.test_synapses.test_summed_variables_linked_variables ... ok
brian2.tests.test_synapses.test_repr ... ok
brian2.tests.test_synapses.test_pre_post_variables ... ok
brian2.tests.test_synapses.test_variables_by_owner ... ok
brian2.tests.test_synapses.test_permutation_analysis ... ok
brian2.tests.test_synapses.test_synapse_generator_syntax ... ok
brian2.tests.test_synapses.test_synapse_generator_range_noint ... ok
brian2.tests.test_templates.test_templates ... ok
brian2.tests.test_timedarray.test_timedarray_direct_use ... ok
brian2.tests.test_timedarray.test_timedarray_incorrect_use ... ok
Test the construction of quantity objects ... ok
Test various ways of getting/comparing the dimensions of a quantity. ... ok
Test displaying a quantity in different units ... ok
brian2.tests.test_units.test_scale ... ok
Test pickling of units. ... ok
Test that str representations do not raise any errors and that repr ... ok
brian2.tests.test_units.test_slicing ... ok
brian2.tests.test_units.test_setting ... ok
brian2.tests.test_units.test_multiplication_division ... ok
brian2.tests.test_units.test_addition_subtraction ... ok
brian2.tests.test_units.test_unary_operations ... ok
Test whether binary operations work when they should and raise ... ok
Test raising quantities to a power. ... ok
brian2.tests.test_units.test_inplace_operations ... ok
Test functions that discard units. ... ok
Test the unitsafe functions wrapping their numpy counterparts. ... ok
Test a couple of functions/methods that need special treatment. ... ok
brian2.tests.test_units.test_numpy_functions_same_dimensions ... ok
Check numpy functions that return indices. ... ok
Test that numpy functions that should work on dimensionless quantities only ... ok
Test some numpy functions that change the dimensions of the quantity. ... ok
Assures that certain numpy functions raise a TypeError when called on ... ok
Assure that logical numpy functions work on all quantities and return ... ok
brian2.tests.test_units.test_arange_linspace ... ok
Test converting to and from a list. ... ok
Test the check_units decorator ... ok
Test get_unit ... ok
brian2.tests.test_units.test_get_best_unit ... ok
Check switching off unit checks (used for external functions). ... ok
Test the fail_for_dimension_mismatch function. ... ok
brian2.tests.test_units.test_deepcopy ... ok
brian2.tests.test_units.test_inplace_on_scalars ... ok
brian2.tests.test_units.test_all_units_list ... ok
brian2.tests.test_units.test_constants ... ok
Test information about the environment we are running under. ... ok
brian2.tests.test_utils.test_spell_check ... ok
brian2.tests.test_variables.test_construction_errors ... ok
brian2.tests.test_variables.test_str_repr ... ok
brian2.tests.test_variables.test_dtype_str ... ok
----------------------------------------------------------------------
Ran 347 tests in 52.712s
OK (SKIP=2)
Running tests for target numpy:
brian2.tests.test_GSL.test_GSL_default_function ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_different_clocks ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_bounds ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless1 ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless2 ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_unit ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_incorrect_error_format ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_nonODE_variable ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_nonexisting_variable ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error ... ok
brian2.tests.test_GSL.test_GSL_method_options_neurongroup ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_method_options_spatialneuron ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_method_options_synapses ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_non_autonomous ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_refractory ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_save_step_count ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_stateupdater_basic ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_user_defined_function ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_x_variable ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_base.test_active_flag ... ok
brian2.tests.test_codegen.test_clear_cache_numpy ... ok
brian2.tests.test_codegen.test_clear_cache_weave ... SKIP: weave-only test
brian2.tests.test_codegen.test_clear_cache_cython ... SKIP: Cython-only test
brian2.tests.test_complex_examples.test_cuba ... ok
Make sure that symbolic constants use the correct values in code ... ok
Test that math functions give the same result, regardless of whether used ... ok
brian2.tests.test_functions.test_clip ... ok
brian2.tests.test_functions.test_bool_to_int ... ok
brian2.tests.test_functions.test_timestep_function_during_run ... ok
brian2.tests.test_functions.test_user_defined_function ... ok
Test the preparation of functions for use in code with check_units. ... ok
brian2.tests.test_functions.test_simple_user_defined_function ... ok
brian2.tests.test_functions.test_manual_user_defined_function ... ok
brian2.tests.test_functions.test_manual_user_defined_function_weave ... SKIP: weave-only test
brian2.tests.test_functions.test_function_dependencies_weave ... SKIP: weave-only test
brian2.tests.test_functions.test_function_dependencies_cython ... SKIP: cython-only test
brian2.tests.test_functions.test_function_dependencies_numpy ... ok
brian2.tests.test_functions.test_binomial ... ok
brian2.tests.test_functions.test_declare_types ... ok
brian2.tests.test_functions.test_multiple_stateless_function_calls ... ok
brian2.tests.test_monitor.test_spike_monitor ... ok
brian2.tests.test_monitor.test_spike_monitor_indexing ... ok
brian2.tests.test_monitor.test_spike_monitor_variables ... ok
brian2.tests.test_monitor.test_spike_monitor_get_states ... ok
brian2.tests.test_monitor.test_spike_monitor_subgroups ... ok
brian2.tests.test_monitor.test_spike_monitor_bug_824 ... ok
brian2.tests.test_monitor.test_event_monitor ... ok
brian2.tests.test_monitor.test_event_monitor_no_record ... ok
brian2.tests.test_monitor.test_spike_trains ... ok
brian2.tests.test_monitor.test_synapses_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor_record_single_timestep ... ok
brian2.tests.test_monitor.test_state_monitor_indexing ... ok
brian2.tests.test_monitor.test_state_monitor_get_states ... ok
brian2.tests.test_monitor.test_state_monitor_resize ... ok
brian2.tests.test_monitor.test_rate_monitor_1 ... ok
brian2.tests.test_monitor.test_rate_monitor_2 ... ok
brian2.tests.test_monitor.test_rate_monitor_get_states ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups_2 ... ok
brian2.tests.test_morphology.test_tree_cables_from_swc ... ok
Somewhat realistic test with a loop of magic networks ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_2 ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_3 ... ok
brian2.tests.test_network.test_dt_changes_between_runs ... ok
brian2.tests.test_network.test_profile ... ok
brian2.tests.test_network.test_profile_off ... ok
brian2.tests.test_network.test_runtime_rounding ... ok
brian2.tests.test_network.test_multiple_runs_constant_change ... ok
brian2.tests.test_network.test_multiple_runs_function_change ... ok
Test that a NeuronGroup with a stochastic variable can be simulated. Only ... ok
Test that a NeuronGroup with multiplicative noise can be simulated. Only ... ok
Test the correct handling of scalar variables ... ok
Test the correct handling of referred scalar variables in subexpressions ... ok
Test correct uses of linked variables. ... ok
Test linked variable from a size 1 group. ... ok
Test a subexpression referring to a linked variable. ... ok
Test a linked variable referring to a subexpression without indices ... ok
Test a linked variable referring to a subexpression with indices ... ok
Test a complicated setup (not unlikely when using brian hears) ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset_size_1 ... ok
Test that threshold and reset work in the expected way. ... ok
brian2.tests.test_neurongroup.test_custom_events_schedule ... ok
Test the setting and accessing of state variables. ... ok
brian2.tests.test_neurongroup.test_state_variable_access_strings ... ok
brian2.tests.test_neurongroup.test_state_variable_set_strings ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_variable ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_neurongroup.test_constant_variable_subexpression ... ok
Test an issue around variables aliasing other variables (#259) ... ok
brian2.tests.test_neurongroup.test_random_vector_values ... ok
brian2.tests.test_neurongroup.test_random_values_random_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_and_random ... ok
brian2.tests.test_neurongroup.test_run_regularly_scheduling ... ok
brian2.tests.test_neurongroup.test_run_regularly_dt ... ok
brian2.tests.test_neurongroup.test_semantics_floor_division ... ok
brian2.tests.test_neurongroup.test_semantics_floating_point_division ... ok
brian2.tests.test_neurongroup.test_semantics_mod ... ok
brian2.tests.test_numpy_codegen.test_error_message ... ok
brian2.tests.test_parsing.test_parse_expressions_cpp ... SKIP: weave-only test
brian2.tests.test_poissongroup.test_single_rates ... ok
brian2.tests.test_poissongroup.test_rate_arrays ... ok
brian2.tests.test_poissongroup.test_time_dependent_rate ... ok
brian2.tests.test_poissongroup.test_propagation ... ok
brian2.tests.test_poissongroup.test_poissongroup_subgroup ... ok
brian2.tests.test_poissoninput.test_poissoninput ... ok
brian2.tests.test_poissoninput.test_poissoninput_refractory ... ok
brian2.tests.test_refractory.test_refractoriness_basic ... ok
brian2.tests.test_refractory.test_refractoriness_variables ... ok
brian2.tests.test_refractory.test_refractoriness_threshold_basic ... ok
brian2.tests.test_refractory.test_refractoriness_repeated ... ok
brian2.tests.test_refractory.test_refractoriness_repeated_legacy ... ok
brian2.tests.test_refractory.test_refractoriness_threshold ... ok
brian2.tests.test_refractory.test_conditional_write_behaviour ... ok
brian2.tests.test_refractory.test_conditional_write_automatic_and_manual ... ok
Test simulation of an infinite cable vs. theory for current pulse (Green function) ... ok
Test simulation of short cylinder vs. theory for constant current. ... SKIP: Need double precision for this test
Rallpack 1 ... SKIP: Need double precision for this test
Rallpack 2 ... SKIP: Need double precision for this test
Rallpack 3 ... SKIP: Need double precision for this test
Test simulation of a cylinder plus two branches, with diameters according to Rall's formula ... SKIP: Need double precision for this test
brian2.tests.test_spatialneuron.test_basic_diffusion ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_capacitive_currents ... SKIP: Need double precision for this test
Test that `SpikeGeneratorGroup` connects properly. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_change_spikes ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_long ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_period ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_extended ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_deterministic_noise ... ok
brian2.tests.test_stateupdaters.test_pure_noise_deterministic ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
brian2.tests.test_stateupdaters.test_refractory ... WARNING The 'independent' state updater is deprecated and might be removed in future versions of Brian. [brian2.stateupdaters.exact.deprecated_independent]
ok
brian2.tests.test_stateupdaters.test_refractory_stochastic ... ok
brian2.tests.test_stateupdaters.test_check_for_invalid_values_linear_integrator ... ok
Test the setting and accessing of state variables in subgroups. ... ok
brian2.tests.test_subgroup.test_state_variables_simple ... ok
Test accessing subgroups with string indices. ... ok
brian2.tests.test_subgroup.test_state_monitor ... ok
Make sure that shared variables work with subgroups ... ok
brian2.tests.test_subgroup.test_synapse_creation ... ok
brian2.tests.test_subgroup.test_synapse_creation_state_vars ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_multiple_synapses ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_complex_ranges ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_random ... ok
brian2.tests.test_subgroup.test_synapse_access ... ok
brian2.tests.test_subgroup.test_synapses_access_subgroups ... ok
brian2.tests.test_subgroup.test_subgroup_summed_variable ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
Assure that subexpressions are handled correctly, even ... ok
brian2.tests.test_subgroup.test_synaptic_propagation ... ok
brian2.tests.test_subgroup.test_synaptic_propagation_2 ... ok
brian2.tests.test_subgroup.test_run_regularly ... ok
brian2.tests.test_subgroup.test_spike_monitor ... ok
Using subgroups without keeping an explicit reference. Basic access. ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Synapses ... ok
Create a subgroup of a subgroup ... ok
Test the count of outgoing/incoming synapses per neuron. ... ok
Test connecting synapses with explictly given arrays ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_no_self ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_one_to_one ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_custom ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_multiple_and ... ok
brian2.tests.test_synapses.test_connection_random_with_condition ... ok
brian2.tests.test_synapses.test_connection_random_with_condition_2 ... ok
Test random connections. ... ok
brian2.tests.test_synapses.test_connection_random_without_condition ... ok
Test multiple synapses per connection. ... ok
Assign values to state variables in various ways ... ok
brian2.tests.test_synapses.test_state_variable_indexing ... ok
brian2.tests.test_synapses.test_indices ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_constant_variable_subexpression_in_synapses ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_delay_specification ... ok
brian2.tests.test_synapses.test_delays_pathways ... ok
brian2.tests.test_synapses.test_delays_pathways_subgroups ... ok
brian2.tests.test_synapses.test_pre_post_simple ... ok
brian2.tests.test_synapses.test_transmission_simple ... ok
brian2.tests.test_synapses.test_transmission_custom_event ... ok
brian2.tests.test_synapses.test_transmission ... ok
brian2.tests.test_synapses.test_transmission_all_to_one_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_one_to_all_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay_different_clocks ... ok
brian2.tests.test_synapses.test_transmission_boolean_variable ... ok
brian2.tests.test_synapses.test_changed_dt_spikes_in_queue ... ok
brian2.tests.test_synapses.test_summed_variable ... ok
brian2.tests.test_synapses.test_summed_variable_pre_and_post ... ok
brian2.tests.test_synapses.test_summed_variable_differing_group_size ... ok
brian2.tests.test_synapses.test_summed_variable_errors ... ok
brian2.tests.test_synapses.test_summed_variables_subgroups ... ok
brian2.tests.test_synapses.test_scalar_parameter_access ... ok
brian2.tests.test_synapses.test_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_scalar_variable ... ok
brian2.tests.test_synapses.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_constant_subexpression ... ok
brian2.tests.test_synapses.test_external_variables ... ok
brian2.tests.test_synapses.test_event_driven ... ok
brian2.tests.test_synapses.test_vectorisation ... ok
brian2.tests.test_synapses.test_vectorisation_STDP_like ... SKIP: Need double precision for this test
brian2.tests.test_synapses.test_synaptic_equations ... ok
brian2.tests.test_synapses.test_synapse_with_run_regularly ... ok
brian2.tests.test_synapses.test_synapses_to_synapses ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_statevar_access ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_different_sizes ... ok
brian2.tests.test_synapses.test_ufunc_at_vectorisation ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_summed_variable ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic_2 ... ok
brian2.tests.test_synapses.test_synapse_generator_random ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition_2 ... ok
brian2.tests.test_synapses.test_synapses_refractory ... ok
brian2.tests.test_synapses.test_synapses_refractory_rand ... ok
brian2.tests.test_thresholder.test_simple_threshold ... ok
brian2.tests.test_thresholder.test_scalar_threshold ... ok
brian2.tests.test_timedarray.test_timedarray_semantics ... ok
brian2.tests.test_timedarray.test_timedarray_no_units ... ok
brian2.tests.test_timedarray.test_timedarray_with_units ... ok
brian2.tests.test_timedarray.test_timedarray_2d ... ok
brian2.tests.test_timedarray.test_timedarray_no_upsampling ... ok
Use a very long timedarray (with a big dt), where the upsampling can lead ... ok
brian2.tests.test_timedarray.test_timedarray_repeated_use ... ok
brian2.tests.test_units.test_units_vs_quantities ... ok
----------------------------------------------------------------------
Ran 239 tests in 572.850s
OK (SKIP=31)
Running tests for target weave:
brian2.tests.test_GSL.test_GSL_default_function ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
ok
brian2.tests.test_GSL.test_GSL_different_clocks ... ok
brian2.tests.test_GSL.test_GSL_error_bounds ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless1 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless2 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_unit ... ok
brian2.tests.test_GSL.test_GSL_error_incorrect_error_format ... ok
brian2.tests.test_GSL.test_GSL_error_nonODE_variable ... ok
brian2.tests.test_GSL.test_GSL_error_nonexisting_variable ... ok
brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error ... ok
brian2.tests.test_GSL.test_GSL_method_options_neurongroup ... ok
brian2.tests.test_GSL.test_GSL_method_options_spatialneuron ... ok
brian2.tests.test_GSL.test_GSL_method_options_synapses ... ok
brian2.tests.test_GSL.test_GSL_non_autonomous ... ok
brian2.tests.test_GSL.test_GSL_refractory ... ok
brian2.tests.test_GSL.test_GSL_save_step_count ... ok
brian2.tests.test_GSL.test_GSL_stateupdater_basic ... ok
brian2.tests.test_GSL.test_GSL_user_defined_function ... ok
brian2.tests.test_GSL.test_GSL_x_variable ... ok
brian2.tests.test_base.test_active_flag ... ok
brian2.tests.test_codegen.test_clear_cache_numpy ... SKIP: numpy-only test
brian2.tests.test_codegen.test_clear_cache_weave ... ok
brian2.tests.test_codegen.test_clear_cache_cython ... SKIP: Cython-only test
brian2.tests.test_complex_examples.test_cuba ... ok
Make sure that symbolic constants use the correct values in code ... ok
Test that math functions give the same result, regardless of whether used ... ok
brian2.tests.test_functions.test_clip ... ok
brian2.tests.test_functions.test_bool_to_int ... ok
brian2.tests.test_functions.test_timestep_function_during_run ... ok
brian2.tests.test_functions.test_user_defined_function ... ok
Test the preparation of functions for use in code with check_units. ... SKIP: numpy-only test
brian2.tests.test_functions.test_simple_user_defined_function ... ok
brian2.tests.test_functions.test_manual_user_defined_function ... SKIP: numpy-only test
brian2.tests.test_functions.test_manual_user_defined_function_weave ... ok
brian2.tests.test_functions.test_function_dependencies_weave ... ok
brian2.tests.test_functions.test_function_dependencies_cython ... SKIP: cython-only test
brian2.tests.test_functions.test_function_dependencies_numpy ... SKIP: numpy-only test
brian2.tests.test_functions.test_binomial ... ok
brian2.tests.test_functions.test_declare_types ... SKIP: numpy-only test
brian2.tests.test_functions.test_multiple_stateless_function_calls ... ok
brian2.tests.test_monitor.test_spike_monitor ... ok
brian2.tests.test_monitor.test_spike_monitor_indexing ... ok
brian2.tests.test_monitor.test_spike_monitor_variables ... ok
brian2.tests.test_monitor.test_spike_monitor_get_states ... ok
brian2.tests.test_monitor.test_spike_monitor_subgroups ... ok
brian2.tests.test_monitor.test_spike_monitor_bug_824 ... SKIP: numpy-only test
brian2.tests.test_monitor.test_event_monitor ... ok
brian2.tests.test_monitor.test_event_monitor_no_record ... ok
brian2.tests.test_monitor.test_spike_trains ... ok
brian2.tests.test_monitor.test_synapses_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor_record_single_timestep ... ok
brian2.tests.test_monitor.test_state_monitor_indexing ... ok
brian2.tests.test_monitor.test_state_monitor_get_states ... ok
brian2.tests.test_monitor.test_state_monitor_resize ... ok
brian2.tests.test_monitor.test_rate_monitor_1 ... ok
brian2.tests.test_monitor.test_rate_monitor_2 ... ok
brian2.tests.test_monitor.test_rate_monitor_get_states ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups_2 ... ok
brian2.tests.test_morphology.test_tree_cables_from_swc ... ok
Somewhat realistic test with a loop of magic networks ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_2 ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_3 ... ok
brian2.tests.test_network.test_dt_changes_between_runs ... ok
brian2.tests.test_network.test_profile ... ok
brian2.tests.test_network.test_profile_off ... ok
brian2.tests.test_network.test_runtime_rounding ... ok
brian2.tests.test_network.test_multiple_runs_constant_change ... ok
brian2.tests.test_network.test_multiple_runs_function_change ... ok
Test that a NeuronGroup with a stochastic variable can be simulated. Only ... ok
Test that a NeuronGroup with multiplicative noise can be simulated. Only ... ok
Test the correct handling of scalar variables ... ok
Test the correct handling of referred scalar variables in subexpressions ... ok
Test correct uses of linked variables. ... ok
Test linked variable from a size 1 group. ... ok
Test a subexpression referring to a linked variable. ... ok
Test a linked variable referring to a subexpression without indices ... ok
Test a linked variable referring to a subexpression with indices ... ok
Test a complicated setup (not unlikely when using brian hears) ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset_size_1 ... ok
Test that threshold and reset work in the expected way. ... ok
brian2.tests.test_neurongroup.test_custom_events_schedule ... ok
Test the setting and accessing of state variables. ... ok
brian2.tests.test_neurongroup.test_state_variable_access_strings ... ok
brian2.tests.test_neurongroup.test_state_variable_set_strings ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_variable ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_neurongroup.test_constant_variable_subexpression ... ok
Test an issue around variables aliasing other variables (#259) ... SKIP: numpy-only test
brian2.tests.test_neurongroup.test_random_vector_values ... ok
brian2.tests.test_neurongroup.test_random_values_random_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_and_random ... ok
brian2.tests.test_neurongroup.test_run_regularly_scheduling ... ok
brian2.tests.test_neurongroup.test_run_regularly_dt ... ok
brian2.tests.test_neurongroup.test_semantics_floor_division ... ok
brian2.tests.test_neurongroup.test_semantics_floating_point_division ... ok
brian2.tests.test_neurongroup.test_semantics_mod ... ok
brian2.tests.test_numpy_codegen.test_error_message ... SKIP: numpy-only test
brian2.tests.test_parsing.test_parse_expressions_cpp ... ok
brian2.tests.test_poissongroup.test_single_rates ... ok
brian2.tests.test_poissongroup.test_rate_arrays ... ok
brian2.tests.test_poissongroup.test_time_dependent_rate ... ok
brian2.tests.test_poissongroup.test_propagation ... ok
brian2.tests.test_poissongroup.test_poissongroup_subgroup ... ok
brian2.tests.test_poissoninput.test_poissoninput ... ok
brian2.tests.test_poissoninput.test_poissoninput_refractory ... ok
brian2.tests.test_refractory.test_refractoriness_basic ... ok
brian2.tests.test_refractory.test_refractoriness_variables ... ok
brian2.tests.test_refractory.test_refractoriness_threshold_basic ... ok
brian2.tests.test_refractory.test_refractoriness_repeated ... ok
brian2.tests.test_refractory.test_refractoriness_repeated_legacy ... ok
brian2.tests.test_refractory.test_refractoriness_threshold ... ok
brian2.tests.test_refractory.test_conditional_write_behaviour ... ok
brian2.tests.test_refractory.test_conditional_write_automatic_and_manual ... ok
Test simulation of an infinite cable vs. theory for current pulse (Green function) ... ok
Test simulation of short cylinder vs. theory for constant current. ... SKIP: Need double precision for this test
Rallpack 1 ... SKIP: Need double precision for this test
Rallpack 2 ... SKIP: Need double precision for this test
Rallpack 3 ... SKIP: Need double precision for this test
Test simulation of a cylinder plus two branches, with diameters according to Rall's formula ... SKIP: Need double precision for this test
brian2.tests.test_spatialneuron.test_basic_diffusion ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_capacitive_currents ... SKIP: Need double precision for this test
Test that `SpikeGeneratorGroup` connects properly. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_change_spikes ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_long ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_period ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_extended ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_deterministic_noise ... ok
brian2.tests.test_stateupdaters.test_pure_noise_deterministic ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
brian2.tests.test_stateupdaters.test_refractory ... ok
brian2.tests.test_stateupdaters.test_refractory_stochastic ... ok
brian2.tests.test_stateupdaters.test_check_for_invalid_values_linear_integrator ... ok
Test the setting and accessing of state variables in subgroups. ... ok
brian2.tests.test_subgroup.test_state_variables_simple ... ok
Test accessing subgroups with string indices. ... ok
brian2.tests.test_subgroup.test_state_monitor ... ok
Make sure that shared variables work with subgroups ... ok
brian2.tests.test_subgroup.test_synapse_creation ... ok
brian2.tests.test_subgroup.test_synapse_creation_state_vars ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_multiple_synapses ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_complex_ranges ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_random ... ok
brian2.tests.test_subgroup.test_synapse_access ... ok
brian2.tests.test_subgroup.test_synapses_access_subgroups ... ok
brian2.tests.test_subgroup.test_subgroup_summed_variable ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
Assure that subexpressions are handled correctly, even ... ok
brian2.tests.test_subgroup.test_synaptic_propagation ... ok
brian2.tests.test_subgroup.test_synaptic_propagation_2 ... ok
brian2.tests.test_subgroup.test_run_regularly ... ok
brian2.tests.test_subgroup.test_spike_monitor ... ok
Using subgroups without keeping an explicit reference. Basic access. ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Synapses ... ok
Create a subgroup of a subgroup ... ok
Test the count of outgoing/incoming synapses per neuron. ... ok
Test connecting synapses with explictly given arrays ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_no_self ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_one_to_one ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_custom ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_multiple_and ... ok
brian2.tests.test_synapses.test_connection_random_with_condition ... ok
brian2.tests.test_synapses.test_connection_random_with_condition_2 ... ok
Test random connections. ... ok
brian2.tests.test_synapses.test_connection_random_without_condition ... ok
Test multiple synapses per connection. ... ok
Assign values to state variables in various ways ... ok
brian2.tests.test_synapses.test_state_variable_indexing ... ok
brian2.tests.test_synapses.test_indices ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_constant_variable_subexpression_in_synapses ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_delay_specification ... ok
brian2.tests.test_synapses.test_delays_pathways ... ok
brian2.tests.test_synapses.test_delays_pathways_subgroups ... ok
brian2.tests.test_synapses.test_pre_post_simple ... ok
brian2.tests.test_synapses.test_transmission_simple ... ok
brian2.tests.test_synapses.test_transmission_custom_event ... ok
brian2.tests.test_synapses.test_transmission ... ok
brian2.tests.test_synapses.test_transmission_all_to_one_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_one_to_all_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay_different_clocks ... ok
brian2.tests.test_synapses.test_transmission_boolean_variable ... ok
brian2.tests.test_synapses.test_changed_dt_spikes_in_queue ... ok
brian2.tests.test_synapses.test_summed_variable ... ok
brian2.tests.test_synapses.test_summed_variable_pre_and_post ... ok
brian2.tests.test_synapses.test_summed_variable_differing_group_size ... ok
brian2.tests.test_synapses.test_summed_variable_errors ... ok
brian2.tests.test_synapses.test_summed_variables_subgroups ... ok
brian2.tests.test_synapses.test_scalar_parameter_access ... ok
brian2.tests.test_synapses.test_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_scalar_variable ... ok
brian2.tests.test_synapses.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_constant_subexpression ... ok
brian2.tests.test_synapses.test_external_variables ... ok
brian2.tests.test_synapses.test_event_driven ... ok
brian2.tests.test_synapses.test_vectorisation ... ok
brian2.tests.test_synapses.test_vectorisation_STDP_like ... SKIP: Need double precision for this test
brian2.tests.test_synapses.test_synaptic_equations ... ok
brian2.tests.test_synapses.test_synapse_with_run_regularly ... ok
brian2.tests.test_synapses.test_synapses_to_synapses ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_statevar_access ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_different_sizes ... ok
brian2.tests.test_synapses.test_ufunc_at_vectorisation ... SKIP: numpy-only test
brian2.tests.test_synapses.test_synapses_to_synapses_summed_variable ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic_2 ... ok
brian2.tests.test_synapses.test_synapse_generator_random ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition_2 ... ok
brian2.tests.test_synapses.test_synapses_refractory ... ok
brian2.tests.test_synapses.test_synapses_refractory_rand ... ok
brian2.tests.test_thresholder.test_simple_threshold ... ok
brian2.tests.test_thresholder.test_scalar_threshold ... ok
brian2.tests.test_timedarray.test_timedarray_semantics ... ok
brian2.tests.test_timedarray.test_timedarray_no_units ... ok
brian2.tests.test_timedarray.test_timedarray_with_units ... ok
brian2.tests.test_timedarray.test_timedarray_2d ... ok
brian2.tests.test_timedarray.test_timedarray_no_upsampling ... ok
Use a very long timedarray (with a big dt), where the upsampling can lead ... ok
brian2.tests.test_timedarray.test_timedarray_repeated_use ... ok
brian2.tests.test_units.test_units_vs_quantities ... ok
----------------------------------------------------------------------
Ran 239 tests in 331.690s
OK (SKIP=18)
Running tests for target cython:
brian2.tests.test_GSL.test_GSL_default_function ... ok
brian2.tests.test_GSL.test_GSL_different_clocks ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
ok
brian2.tests.test_GSL.test_GSL_error_bounds ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless1 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless2 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_unit ... ok
brian2.tests.test_GSL.test_GSL_error_incorrect_error_format ... ok
brian2.tests.test_GSL.test_GSL_error_nonODE_variable ... ok
brian2.tests.test_GSL.test_GSL_error_nonexisting_variable ... ok
brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error ... ok
brian2.tests.test_GSL.test_GSL_method_options_neurongroup ... ok
brian2.tests.test_GSL.test_GSL_method_options_spatialneuron ... ok
brian2.tests.test_GSL.test_GSL_method_options_synapses ... ok
brian2.tests.test_GSL.test_GSL_non_autonomous ... ok
brian2.tests.test_GSL.test_GSL_refractory ... ok
brian2.tests.test_GSL.test_GSL_save_step_count ... ok
brian2.tests.test_GSL.test_GSL_stateupdater_basic ... ok
brian2.tests.test_GSL.test_GSL_user_defined_function ... ok
brian2.tests.test_GSL.test_GSL_x_variable ... ok
brian2.tests.test_base.test_active_flag ... ok
brian2.tests.test_codegen.test_clear_cache_numpy ... SKIP: numpy-only test
brian2.tests.test_codegen.test_clear_cache_weave ... SKIP: weave-only test
brian2.tests.test_codegen.test_clear_cache_cython ... ok
brian2.tests.test_complex_examples.test_cuba ... ok
Make sure that symbolic constants use the correct values in code ... ok
Test that math functions give the same result, regardless of whether used ... ok
brian2.tests.test_functions.test_clip ... ok
brian2.tests.test_functions.test_bool_to_int ... ok
brian2.tests.test_functions.test_timestep_function_during_run ... ok
brian2.tests.test_functions.test_user_defined_function ... ok
Test the preparation of functions for use in code with check_units. ... SKIP: numpy-only test
brian2.tests.test_functions.test_simple_user_defined_function ... ok
brian2.tests.test_functions.test_manual_user_defined_function ... SKIP: numpy-only test
brian2.tests.test_functions.test_manual_user_defined_function_weave ... SKIP: weave-only test
brian2.tests.test_functions.test_function_dependencies_weave ... SKIP: weave-only test
brian2.tests.test_functions.test_function_dependencies_cython ... ok
brian2.tests.test_functions.test_function_dependencies_numpy ... SKIP: numpy-only test
brian2.tests.test_functions.test_binomial ... ok
brian2.tests.test_functions.test_declare_types ... SKIP: numpy-only test
brian2.tests.test_functions.test_multiple_stateless_function_calls ... ok
brian2.tests.test_monitor.test_spike_monitor ... ok
brian2.tests.test_monitor.test_spike_monitor_indexing ... ok
brian2.tests.test_monitor.test_spike_monitor_variables ... ok
brian2.tests.test_monitor.test_spike_monitor_get_states ... ok
brian2.tests.test_monitor.test_spike_monitor_subgroups ... ok
brian2.tests.test_monitor.test_spike_monitor_bug_824 ... SKIP: numpy-only test
brian2.tests.test_monitor.test_event_monitor ... ok
brian2.tests.test_monitor.test_event_monitor_no_record ... ok
brian2.tests.test_monitor.test_spike_trains ... ok
brian2.tests.test_monitor.test_synapses_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor_record_single_timestep ... ok
brian2.tests.test_monitor.test_state_monitor_indexing ... ok
brian2.tests.test_monitor.test_state_monitor_get_states ... ok
brian2.tests.test_monitor.test_state_monitor_resize ... ok
brian2.tests.test_monitor.test_rate_monitor_1 ... ok
brian2.tests.test_monitor.test_rate_monitor_2 ... ok
brian2.tests.test_monitor.test_rate_monitor_get_states ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups_2 ... ok
brian2.tests.test_morphology.test_tree_cables_from_swc ... ok
Somewhat realistic test with a loop of magic networks ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_2 ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_3 ... ok
brian2.tests.test_network.test_dt_changes_between_runs ... ok
brian2.tests.test_network.test_profile ... ok
brian2.tests.test_network.test_profile_off ... ok
brian2.tests.test_network.test_runtime_rounding ... ok
brian2.tests.test_network.test_multiple_runs_constant_change ... ok
brian2.tests.test_network.test_multiple_runs_function_change ... ok
Test that a NeuronGroup with a stochastic variable can be simulated. Only ... ok
Test that a NeuronGroup with multiplicative noise can be simulated. Only ... ok
Test the correct handling of scalar variables ... ok
Test the correct handling of referred scalar variables in subexpressions ... ok
Test correct uses of linked variables. ... ok
Test linked variable from a size 1 group. ... ok
Test a subexpression referring to a linked variable. ... ok
Test a linked variable referring to a subexpression without indices ... ok
Test a linked variable referring to a subexpression with indices ... ok
Test a complicated setup (not unlikely when using brian hears) ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset_size_1 ... ok
Test that threshold and reset work in the expected way. ... ok
brian2.tests.test_neurongroup.test_custom_events_schedule ... ok
Test the setting and accessing of state variables. ... ok
brian2.tests.test_neurongroup.test_state_variable_access_strings ... ok
brian2.tests.test_neurongroup.test_state_variable_set_strings ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_variable ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_neurongroup.test_constant_variable_subexpression ... ok
Test an issue around variables aliasing other variables (#259) ... SKIP: numpy-only test
brian2.tests.test_neurongroup.test_random_vector_values ... ok
brian2.tests.test_neurongroup.test_random_values_random_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_and_random ... ok
brian2.tests.test_neurongroup.test_run_regularly_scheduling ... ok
brian2.tests.test_neurongroup.test_run_regularly_dt ... ok
brian2.tests.test_neurongroup.test_semantics_floor_division ... ok
brian2.tests.test_neurongroup.test_semantics_floating_point_division ... ok
brian2.tests.test_neurongroup.test_semantics_mod ... ok
brian2.tests.test_numpy_codegen.test_error_message ... SKIP: numpy-only test
brian2.tests.test_parsing.test_parse_expressions_cpp ... SKIP: weave-only test
brian2.tests.test_poissongroup.test_single_rates ... ok
brian2.tests.test_poissongroup.test_rate_arrays ... ok
brian2.tests.test_poissongroup.test_time_dependent_rate ... ok
brian2.tests.test_poissongroup.test_propagation ... ok
brian2.tests.test_poissongroup.test_poissongroup_subgroup ... ok
brian2.tests.test_poissoninput.test_poissoninput ... ok
brian2.tests.test_poissoninput.test_poissoninput_refractory ... ok
brian2.tests.test_refractory.test_refractoriness_basic ... ok
brian2.tests.test_refractory.test_refractoriness_variables ... ok
brian2.tests.test_refractory.test_refractoriness_threshold_basic ... ok
brian2.tests.test_refractory.test_refractoriness_repeated ... ok
brian2.tests.test_refractory.test_refractoriness_repeated_legacy ... ok
brian2.tests.test_refractory.test_refractoriness_threshold ... ok
brian2.tests.test_refractory.test_conditional_write_behaviour ... ok
brian2.tests.test_refractory.test_conditional_write_automatic_and_manual ... ok
Test simulation of an infinite cable vs. theory for current pulse (Green function) ... ok
Test simulation of short cylinder vs. theory for constant current. ... SKIP: Need double precision for this test
Rallpack 1 ... SKIP: Need double precision for this test
Rallpack 2 ... SKIP: Need double precision for this test
Rallpack 3 ... SKIP: Need double precision for this test
Test simulation of a cylinder plus two branches, with diameters according to Rall's formula ... SKIP: Need double precision for this test
brian2.tests.test_spatialneuron.test_basic_diffusion ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_capacitive_currents ... SKIP: Need double precision for this test
Test that `SpikeGeneratorGroup` connects properly. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_change_spikes ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_long ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_period ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_extended ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_deterministic_noise ... ok
brian2.tests.test_stateupdaters.test_pure_noise_deterministic ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
brian2.tests.test_stateupdaters.test_refractory ... WARNING The 'independent' state updater is deprecated and might be removed in future versions of Brian. [brian2.stateupdaters.exact.deprecated_independent]
ok
brian2.tests.test_stateupdaters.test_refractory_stochastic ... ok
brian2.tests.test_stateupdaters.test_check_for_invalid_values_linear_integrator ... ok
Test the setting and accessing of state variables in subgroups. ... ok
brian2.tests.test_subgroup.test_state_variables_simple ... ok
Test accessing subgroups with string indices. ... ok
brian2.tests.test_subgroup.test_state_monitor ... ok
Make sure that shared variables work with subgroups ... ok
brian2.tests.test_subgroup.test_synapse_creation ... ok
brian2.tests.test_subgroup.test_synapse_creation_state_vars ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_multiple_synapses ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_complex_ranges ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_random ... ok
brian2.tests.test_subgroup.test_synapse_access ... ok
brian2.tests.test_subgroup.test_synapses_access_subgroups ... ok
brian2.tests.test_subgroup.test_subgroup_summed_variable ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
Assure that subexpressions are handled correctly, even ... ok
brian2.tests.test_subgroup.test_synaptic_propagation ... ok
brian2.tests.test_subgroup.test_synaptic_propagation_2 ... ok
brian2.tests.test_subgroup.test_run_regularly ... ok
brian2.tests.test_subgroup.test_spike_monitor ... ok
Using subgroups without keeping an explicit reference. Basic access. ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Synapses ... ok
Create a subgroup of a subgroup ... ok
Test the count of outgoing/incoming synapses per neuron. ... ok
Test connecting synapses with explictly given arrays ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_no_self ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_one_to_one ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_custom ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_multiple_and ... ok
brian2.tests.test_synapses.test_connection_random_with_condition ... ok
brian2.tests.test_synapses.test_connection_random_with_condition_2 ... ok
Test random connections. ... ok
brian2.tests.test_synapses.test_connection_random_without_condition ... ok
Test multiple synapses per connection. ... ok
Assign values to state variables in various ways ... ok
brian2.tests.test_synapses.test_state_variable_indexing ... ok
brian2.tests.test_synapses.test_indices ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_constant_variable_subexpression_in_synapses ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_delay_specification ... ok
brian2.tests.test_synapses.test_delays_pathways ... ok
brian2.tests.test_synapses.test_delays_pathways_subgroups ... ok
brian2.tests.test_synapses.test_pre_post_simple ... ok
brian2.tests.test_synapses.test_transmission_simple ... ok
brian2.tests.test_synapses.test_transmission_custom_event ... ok
brian2.tests.test_synapses.test_transmission ... ok
brian2.tests.test_synapses.test_transmission_all_to_one_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_one_to_all_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay_different_clocks ... ok
brian2.tests.test_synapses.test_transmission_boolean_variable ... ok
brian2.tests.test_synapses.test_changed_dt_spikes_in_queue ... ok
brian2.tests.test_synapses.test_summed_variable ... ok
brian2.tests.test_synapses.test_summed_variable_pre_and_post ... ok
brian2.tests.test_synapses.test_summed_variable_differing_group_size ... ok
brian2.tests.test_synapses.test_summed_variable_errors ... ok
brian2.tests.test_synapses.test_summed_variables_subgroups ... ok
brian2.tests.test_synapses.test_scalar_parameter_access ... ok
brian2.tests.test_synapses.test_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_scalar_variable ... ok
brian2.tests.test_synapses.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_constant_subexpression ... ok
brian2.tests.test_synapses.test_external_variables ... ok
brian2.tests.test_synapses.test_event_driven ... ok
brian2.tests.test_synapses.test_vectorisation ... ok
brian2.tests.test_synapses.test_vectorisation_STDP_like ... SKIP: Need double precision for this test
brian2.tests.test_synapses.test_synaptic_equations ... ok
brian2.tests.test_synapses.test_synapse_with_run_regularly ... ok
brian2.tests.test_synapses.test_synapses_to_synapses ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_statevar_access ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_different_sizes ... ok
brian2.tests.test_synapses.test_ufunc_at_vectorisation ... SKIP: numpy-only test
brian2.tests.test_synapses.test_synapses_to_synapses_summed_variable ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic_2 ... ok
brian2.tests.test_synapses.test_synapse_generator_random ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition_2 ... ok
brian2.tests.test_synapses.test_synapses_refractory ... ok
brian2.tests.test_synapses.test_synapses_refractory_rand ... ok
brian2.tests.test_thresholder.test_simple_threshold ... ok
brian2.tests.test_thresholder.test_scalar_threshold ... ok
brian2.tests.test_timedarray.test_timedarray_semantics ... ok
brian2.tests.test_timedarray.test_timedarray_no_units ... ok
brian2.tests.test_timedarray.test_timedarray_with_units ... ok
brian2.tests.test_timedarray.test_timedarray_2d ... ok
brian2.tests.test_timedarray.test_timedarray_no_upsampling ... ok
Use a very long timedarray (with a big dt), where the upsampling can lead ... ok
brian2.tests.test_timedarray.test_timedarray_repeated_use ... ok
brian2.tests.test_units.test_units_vs_quantities ... ok
----------------------------------------------------------------------
Ran 239 tests in 395.993s
OK (SKIP=20)
Testing standalone device "cpp_standalone"
Running standalone-compatible standard tests (single run statement)
brian2.tests.test_GSL.test_GSL_default_function ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
ok
brian2.tests.test_GSL.test_GSL_different_clocks ... ok
brian2.tests.test_GSL.test_GSL_error_bounds ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless1 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless2 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_unit ... ok
brian2.tests.test_GSL.test_GSL_error_incorrect_error_format ... ok
brian2.tests.test_GSL.test_GSL_error_nonODE_variable ... ok
brian2.tests.test_GSL.test_GSL_error_nonexisting_variable ... ok
brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error ... ok
brian2.tests.test_GSL.test_GSL_method_options_neurongroup ... ok
brian2.tests.test_GSL.test_GSL_method_options_spatialneuron ... ok
brian2.tests.test_GSL.test_GSL_non_autonomous ... ok
brian2.tests.test_GSL.test_GSL_refractory ... ok
brian2.tests.test_GSL.test_GSL_stateupdater_basic ... ok
brian2.tests.test_GSL.test_GSL_user_defined_function ... ok
brian2.tests.test_GSL.test_GSL_x_variable ... ok
brian2.tests.test_complex_examples.test_cuba ... ok
Make sure that symbolic constants use the correct values in code ... ok
brian2.tests.test_functions.test_clip ... ok
brian2.tests.test_functions.test_bool_to_int ... ok
brian2.tests.test_functions.test_timestep_function_during_run ... ok
brian2.tests.test_functions.test_user_defined_function ... ok
brian2.tests.test_functions.test_binomial ... ok
brian2.tests.test_monitor.test_spike_monitor ... ok
brian2.tests.test_monitor.test_spike_monitor_variables ... ok
brian2.tests.test_monitor.test_spike_monitor_get_states ... ok
brian2.tests.test_monitor.test_spike_monitor_subgroups ... ok
brian2.tests.test_monitor.test_event_monitor ... ok
brian2.tests.test_monitor.test_event_monitor_no_record ... ok
brian2.tests.test_monitor.test_spike_trains ... ok
brian2.tests.test_monitor.test_state_monitor ... ok
brian2.tests.test_monitor.test_state_monitor_indexing ... ok
brian2.tests.test_monitor.test_state_monitor_get_states ... ok
brian2.tests.test_monitor.test_state_monitor_resize ... ok
brian2.tests.test_monitor.test_rate_monitor_1 ... ok
brian2.tests.test_monitor.test_rate_monitor_2 ... ok
brian2.tests.test_monitor.test_rate_monitor_get_states ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups ... ok
brian2.tests.test_monitor.test_rate_monitor_subgroups_2 ... ok
brian2.tests.test_network.test_profile ... ok
brian2.tests.test_network.test_profile_off ... ok
brian2.tests.test_network.test_runtime_rounding ... ok
Test that a NeuronGroup with a stochastic variable can be simulated. Only ... ok
Test that a NeuronGroup with multiplicative noise can be simulated. Only ... ok
Test the correct handling of referred scalar variables in subexpressions ... ok
Test correct uses of linked variables. ... ok
Test linked variable from a size 1 group. ... ok
Test a subexpression referring to a linked variable. ... ok
Test a linked variable referring to a subexpression without indices ... ok
Test a linked variable referring to a subexpression with indices ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset_size_1 ... ok
Test that threshold and reset work in the expected way. ... ok
brian2.tests.test_neurongroup.test_state_variable_set_strings ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_variable ... ok
brian2.tests.test_neurongroup.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_neurongroup.test_constant_variable_subexpression ... ok
brian2.tests.test_neurongroup.test_random_values_random_seed ... ok
brian2.tests.test_neurongroup.test_random_values_fixed_seed ... ok
brian2.tests.test_neurongroup.test_run_regularly_scheduling ... ok
brian2.tests.test_neurongroup.test_run_regularly_dt ... ok
brian2.tests.test_neurongroup.test_semantics_floor_division ... ok
brian2.tests.test_neurongroup.test_semantics_floating_point_division ... ok
brian2.tests.test_neurongroup.test_semantics_mod ... ok
brian2.tests.test_poissongroup.test_single_rates ... ok
brian2.tests.test_poissongroup.test_rate_arrays ... ok
brian2.tests.test_poissongroup.test_time_dependent_rate ... ok
brian2.tests.test_poissongroup.test_propagation ... ok
brian2.tests.test_poissongroup.test_poissongroup_subgroup ... ok
brian2.tests.test_poissoninput.test_poissoninput ... ok
brian2.tests.test_poissoninput.test_poissoninput_refractory ... ok
brian2.tests.test_refractory.test_refractoriness_basic ... ok
brian2.tests.test_refractory.test_refractoriness_variables ... ok
brian2.tests.test_refractory.test_refractoriness_threshold_basic ... ok
brian2.tests.test_refractory.test_refractoriness_repeated ... ok
brian2.tests.test_refractory.test_refractoriness_repeated_legacy ... ok
brian2.tests.test_refractory.test_refractoriness_threshold ... ok
brian2.tests.test_refractory.test_conditional_write_behaviour ... ok
brian2.tests.test_refractory.test_conditional_write_automatic_and_manual ... ok
Test simulation of short cylinder vs. theory for constant current. ... SKIP: Need double precision for this test
Rallpack 1 ... SKIP: Need double precision for this test
Rallpack 2 ... SKIP: Need double precision for this test
Rallpack 3 ... SKIP: Need double precision for this test
Test simulation of a cylinder plus two branches, with diameters according to Rall's formula ... SKIP: Need double precision for this test
brian2.tests.test_spatialneuron.test_basic_diffusion ... ok
Test that `SpikeGeneratorGroup` connects properly. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_long ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_period ... ok
Make sure that the integration of a (non-stochastic) differential equation ... ok
brian2.tests.test_stateupdaters.test_check_for_invalid_values_linear_integrator ... ok
brian2.tests.test_subgroup.test_state_variables_simple ... ok
brian2.tests.test_subgroup.test_state_monitor ... ok
brian2.tests.test_subgroup.test_synapse_creation ... ok
brian2.tests.test_subgroup.test_synapse_creation_state_vars ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_multiple_synapses ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_complex_ranges ... ok
brian2.tests.test_subgroup.test_synapse_creation_generator_random ... ok
brian2.tests.test_subgroup.test_subgroup_summed_variable ... ok
brian2.tests.test_subgroup.test_synaptic_propagation ... ok
brian2.tests.test_subgroup.test_synaptic_propagation_2 ... ok
brian2.tests.test_subgroup.test_run_regularly ... ok
brian2.tests.test_subgroup.test_spike_monitor ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Monitors ... ok
Using subgroups without keeping an explicit reference. Synapses ... ok
Test the count of outgoing/incoming synapses per neuron. ... ok
Test connecting synapses with explictly given arrays ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_no_self ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_one_to_one ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_full_custom ... ok
brian2.tests.test_synapses.test_connection_string_deterministic_multiple_and ... ok
brian2.tests.test_synapses.test_connection_random_with_condition ... ok
brian2.tests.test_synapses.test_connection_random_with_condition_2 ... ok
Test random connections. ... ok
brian2.tests.test_synapses.test_connection_random_without_condition ... ok
Test multiple synapses per connection. ... ok
brian2.tests.test_synapses.test_constant_variable_subexpression_in_synapses ... ok
Assure that subexpressions in targeted groups are handled correctly. ... ok
brian2.tests.test_synapses.test_pre_post_simple ... ok
brian2.tests.test_synapses.test_transmission_simple ... ok
brian2.tests.test_synapses.test_transmission_custom_event ... ok
brian2.tests.test_synapses.test_transmission_all_to_one_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_one_to_all_heterogeneous_delays ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay ... ok
brian2.tests.test_synapses.test_transmission_scalar_delay_different_clocks ... ok
brian2.tests.test_synapses.test_transmission_boolean_variable ... ok
brian2.tests.test_synapses.test_summed_variable ... ok
brian2.tests.test_synapses.test_summed_variable_pre_and_post ... ok
brian2.tests.test_synapses.test_summed_variable_differing_group_size ... ok
brian2.tests.test_synapses.test_summed_variables_subgroups ... ok
brian2.tests.test_synapses.test_sim_with_scalar_variable ... ok
brian2.tests.test_synapses.test_sim_with_scalar_subexpression ... ok
brian2.tests.test_synapses.test_sim_with_constant_subexpression ... ok
brian2.tests.test_synapses.test_external_variables ... ok
brian2.tests.test_synapses.test_event_driven ... ok
brian2.tests.test_synapses.test_vectorisation ... ok
brian2.tests.test_synapses.test_vectorisation_STDP_like ... SKIP: Need double precision for this test
brian2.tests.test_synapses.test_synaptic_equations ... ok
brian2.tests.test_synapses.test_synapse_with_run_regularly ... ok
brian2.tests.test_synapses.test_synapses_to_synapses ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_statevar_access ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_different_sizes ... ok
brian2.tests.test_synapses.test_synapses_to_synapses_summed_variable ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic ... ok
brian2.tests.test_synapses.test_synapse_generator_deterministic_2 ... ok
brian2.tests.test_synapses.test_synapse_generator_random ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition ... ok
brian2.tests.test_synapses.test_synapse_generator_random_with_condition_2 ... ok
brian2.tests.test_synapses.test_synapses_refractory ... ok
brian2.tests.test_synapses.test_synapses_refractory_rand ... ok
brian2.tests.test_thresholder.test_simple_threshold ... ok
brian2.tests.test_thresholder.test_scalar_threshold ... ok
brian2.tests.test_timedarray.test_timedarray_semantics ... ok
brian2.tests.test_timedarray.test_timedarray_no_units ... ok
brian2.tests.test_timedarray.test_timedarray_with_units ... ok
brian2.tests.test_timedarray.test_timedarray_2d ... ok
brian2.tests.test_timedarray.test_timedarray_no_upsampling ... ok
----------------------------------------------------------------------
Ran 164 tests in 1304.805s
OK (SKIP=6)
Running standalone-compatible standard tests (multiple run statements)
brian2.tests.test_base.test_active_flag ... ok
brian2.tests.test_monitor.test_state_monitor_record_single_timestep ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_2 ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_3 ... ok
brian2.tests.test_network.test_dt_changes_between_runs ... ok
brian2.tests.test_network.test_multiple_runs_constant_change ... ok
brian2.tests.test_network.test_multiple_runs_function_change ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_capacitive_currents ... SKIP: Need double precision for this test
brian2.tests.test_spikegenerator.test_spikegenerator_change_spikes ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
----------------------------------------------------------------------
Ran 11 tests in 56.014s
OK (SKIP=1)
Running standalone-specific tests
brian2.tests.test_cpp_standalone.test_cpp_standalone ... ok
brian2.tests.test_cpp_standalone.test_multiple_connects ... ok
brian2.tests.test_cpp_standalone.test_storing_loading ... ok
brian2.tests.test_cpp_standalone.test_duplicate_names_across_nets ... ok
brian2.tests.test_cpp_standalone.test_time_after_run ... ok
brian2.tests.test_cpp_standalone.test_array_cache ... ok
brian2.tests.test_cpp_standalone.test_run_with_debug ... Number of spikes: 0
Number of synapses: 1
ok
brian2.tests.test_cpp_standalone.test_changing_profile_arg ... ok
brian2.tests.test_network.test_multiple_runs_report_standalone_incorrect ... ok
----------------------------------------------------------------------
Ran 9 tests in 48.139s
OK
OK: 7/7 test suite(s) did complete successfully.
Running tests in D:\programming\brian2\brian2 for targets numpy, weave, cython (including long tests)
Testing standalone
Testing codegen-independent code
Resetting to default preferences
Setting dtype for floating point variables to: float64
Running tests that do not use code generation
Doctest: brian2.codegen.optimisation.reduced_node ... ok
Doctest: brian2.codegen.runtime.numpy_rt.numpy_rt.LazyArange ... ok
Doctest: brian2.core.clocks.check_dt ... ok
Doctest: brian2.core.network._format_time ... ok
Doctest: brian2.core.operations.network_operation ... ok
Doctest: brian2.core.preferences.parse_preference_name ... ok
Doctest: brian2.core.variables.linked_var ... ok
Doctest: brian2.input.timedarray.TimedArray ... ok
Doctest: brian2.memory.dynamicarray.DynamicArray ... ok
Doctest: brian2.monitors.spikemonitor.EventMonitor.all_values ... ok
Doctest: brian2.monitors.spikemonitor.EventMonitor.values ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor.all_values ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor.spike_trains ... ok
Doctest: brian2.monitors.spikemonitor.SpikeMonitor.values ... ok
Doctest: brian2.monitors.statemonitor.StateMonitor.record_single_timestep ... ok
Doctest: brian2.parsing.statements.parse_statement ... ok
SKIP: Do not test sphinx extension
Doctest: brian2.stateupdaters.base.extract_method_options ... ok
Doctest: brian2.stateupdaters.explicit.ExplicitStateUpdater.__call__ ... ok
Doctest: brian2.stateupdaters.explicit.split_expression ... ok
Doctest: brian2.stateupdaters.exponential_euler.get_conditionally_linear_system ... ok
Doctest: brian2.units.fundamentalunits.Quantity ... ok
Doctest: brian2.units.fundamentalunits.Quantity.dot ... ok
Doctest: brian2.units.fundamentalunits.Quantity.fill ... ok
Doctest: brian2.units.fundamentalunits.Quantity.in_best_unit ... ok
Doctest: brian2.units.fundamentalunits.Quantity.in_unit ... ok
Doctest: brian2.units.fundamentalunits.Quantity.with_dimensions ... ok
Doctest: brian2.units.fundamentalunits.Unit ... ok
Doctest: brian2.units.fundamentalunits.check_units ... ok
Doctest: brian2.units.fundamentalunits.get_or_create_dimension ... ok
Doctest: brian2.units.fundamentalunits.in_best_unit ... ok
Doctest: brian2.units.fundamentalunits.in_unit ... ok
Doctest: brian2.units.fundamentalunits.quantity_with_dimensions ... ok
Doctest: brian2.units.fundamentalunits.register_new_unit ... ok
SKIP: Do not test numpy docstrings
Doctest: brian2.utils.arrays.calc_repeats ... ok
Doctest: brian2.utils.logger.catch_logs ... ok
Doctest: brian2.utils.stringtools.deindent ... ok
Doctest: brian2.utils.stringtools.get_identifiers ... ok
Doctest: brian2.utils.stringtools.indent ... ok
Doctest: brian2.utils.stringtools.strip_empty_lines ... ok
Doctest: brian2.utils.stringtools.word_substitute ... ok
brian2.tests.test_GSL.test_GSL_internal_variable ... ok
brian2.tests.test_GSL.test_GSL_stochastic ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
ok
brian2.tests.test_GSL.test_GSL_failing_directory ... ok
brian2.tests.test_base.test_base ... ok
brian2.tests.test_base.test_names ... ok
brian2.tests.test_base.test_duplicate_names ... ok
brian2.tests.test_clocks.test_clock_attributes ... ok
brian2.tests.test_clocks.test_clock_dt_change ... ok
brian2.tests.test_clocks.test_defaultclock ... ok
brian2.tests.test_clocks.test_set_interval_warning ... ok
brian2.tests.test_codegen.test_auto_target ... ok
Test that the analyse_identifiers function works on a simple clear example. ... ok
Test finding identifiers including subexpressions. ... ok
brian2.tests.test_codegen.test_write_to_subexpression ... ok
brian2.tests.test_codegen.test_repeated_subexpressions ... ok
This test checks that code translation works with nested subexpressions. ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_integer ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_boolean ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_no_optimisation ... ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_simplification ... WARNING The expression "i1 / 1" divides two integer values. In previous versions of Brian, this would have used either an integer ("flooring") or a floating point division, depending on the Python version and the code generation target. In the current version, it always uses a floating point division. Explicitly ask for an integer division ("//"), or turn one of the operands into a floating point value (e.g. replace "1/2" by "1.0/2") to no longer receive this warning. [brian2.parsing.bast.floating_point_division]
ok
brian2.tests.test_codegen.test_apply_loop_invariant_optimisation_constant_evaluation ... ok
brian2.tests.test_codegen.test_automatic_augmented_assignments ... ok
Test creating expressions. ... ok
brian2.tests.test_codestrings.test_split_stochastic ... ok
Test the string representation of expressions and statements. Assumes that ... ok
brian2.tests.test_devices.test_set_reset_device_implicit ... FAIL
brian2.tests.test_devices.test_set_reset_device_explicit ... ok
brian2.tests.test_equations.test_utility_functions ... ok
brian2.tests.test_equations.test_identifier_checks ... ok
Test the parsing of equation strings ... ok
Test replacing variables via keyword arguments ... ok
Tests for replacements that should not work ... ok
brian2.tests.test_equations.test_substitute ... ok
Test that the Equations constructor raises errors correctly ... ok
brian2.tests.test_equations.test_unit_checking ... ok
Test accessing the various properties of equation objects ... ok
brian2.tests.test_equations.test_concatenation ... ok
brian2.tests.test_equations.test_extract_subexpressions ... ok
brian2.tests.test_equations.test_repeated_construction ... ok
Test the string representation (only that it does not throw errors). ... ok
brian2.tests.test_equations.test_ipython_pprint ... ok
Make sure that symbolic constants are understood correctly by sympy ... ok
brian2.tests.test_functions.test_timestep_function ... ok
brian2.tests.test_functions.test_user_defined_function_discarding_units ... ok
brian2.tests.test_functions.test_user_defined_function_discarding_units_2 ... ok
brian2.tests.test_functions.test_function_implementation_container ... ok
brian2.tests.test_memory.test_dynamic_array_1d_access ... ok
brian2.tests.test_memory.test_dynamic_array_1d_resize_up_down ... ok
brian2.tests.test_memory.test_dynamic_array_1d_resize_down_up ... ok
brian2.tests.test_memory.test_dynamic_array_1d_shrink ... ok
brian2.tests.test_memory.test_dynamic_array_2d_access ... ok
brian2.tests.test_memory.test_dynamic_array_2d_resize_up_down ... ok
brian2.tests.test_memory.test_dynamic_array_2d_resize_down_up ... ok
brian2.tests.test_memory.test_dynamic_array_2d_shrink ... ok
brian2.tests.test_monitor.test_rate_monitor_smoothed_rate ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_smoothed_rate_incorrect ... ok
brian2.tests.test_morphology.test_attributes_soma ... ok
brian2.tests.test_morphology.test_attributes_soma_coordinates ... ok
brian2.tests.test_morphology.test_attributes_cylinder ... ok
brian2.tests.test_morphology.test_attributes_cylinder_coordinates ... ok
brian2.tests.test_morphology.test_attributes_section ... ok
brian2.tests.test_morphology.test_attributes_section_coordinates_single ... ok
brian2.tests.test_morphology.test_attributes_section_coordinates_all ... ok
brian2.tests.test_morphology.test_tree_cables_schematic ... ok
brian2.tests.test_morphology.test_tree_cables_coordinates ... ok
brian2.tests.test_morphology.test_tree_cables_from_points ... ok
brian2.tests.test_morphology.test_tree_soma_schematic ... ok
brian2.tests.test_morphology.test_tree_soma_coordinates ... ok
brian2.tests.test_morphology.test_tree_soma_from_points ... ok
brian2.tests.test_morphology.test_tree_soma_from_points_3_point_soma ... ok
brian2.tests.test_morphology.test_tree_soma_from_points_3_point_soma_incorrect ... ok
brian2.tests.test_morphology.test_tree_soma_from_swc ... ok
brian2.tests.test_morphology.test_tree_soma_from_swc_3_point_soma ... ok
brian2.tests.test_morphology.test_construction_incorrect_arguments ... ok
brian2.tests.test_morphology.test_from_points_minimal ... ok
brian2.tests.test_morphology.test_from_points_incorrect ... ok
brian2.tests.test_morphology.test_subtree_deletion ... ok
brian2.tests.test_morphology.test_subgroup_indices ... ok
brian2.tests.test_morphology.test_subgroup_attributes ... ok
brian2.tests.test_morphology.test_subgroup_incorrect ... ok
brian2.tests.test_morphology.test_topology ... ok
brian2.tests.test_morphology.test_copy_section_soma ... ok
brian2.tests.test_morphology.test_copy_section_section ... ok
brian2.tests.test_morphology.test_copy_section_cylinder ... ok
brian2.tests.test_morphology.test_generate_coordinates_deterministic ... ok
brian2.tests.test_morphology.test_generate_coordinates_random_sections ... ok
brian2.tests.test_morphology.test_generate_coordinates_random_compartments ... ok
brian2.tests.test_morphology.test_generate_coordinates_random_all ... ok
brian2.tests.test_morphology.test_generate_coordinates_no_overwrite ... ok
brian2.tests.test_morphology.test_generate_coordinates_overwrite ... ok
brian2.tests.test_morphology.test_generate_coordinates_mixed_overwrite ... ok
brian2.tests.test_morphology.test_str_repr ... ok
Test that the default namespace contains standard units and functions. ... ok
Test resolution with an explicitly provided namespace ... ok
brian2.tests.test_namespaces.test_errors ... ok
brian2.tests.test_namespaces.test_resolution ... ok
brian2.tests.test_namespaces.test_warning ... ok
brian2.tests.test_namespaces.test_warning_internal_variables ... ok
Test some wrong uses of `Network` and `MagicNetwork` ... ok
Test `Network.__contains__`. ... ok
brian2.tests.test_network.test_empty_network ... ok
brian2.tests.test_network.test_network_single_object ... FAIL
brian2.tests.test_network.test_network_two_objects ... FAIL
brian2.tests.test_network.test_network_from_dict ... FAIL
brian2.tests.test_network.test_network_different_clocks ... FAIL
brian2.tests.test_network.test_network_different_when ... FAIL
brian2.tests.test_network.test_network_default_schedule ... ok
brian2.tests.test_network.test_network_schedule_change ... FAIL
brian2.tests.test_network.test_network_before_after_schedule ... FAIL
brian2.tests.test_network.test_network_custom_slots ... FAIL
brian2.tests.test_network.test_network_incorrect_schedule ... ok
brian2.tests.test_network.test_schedule_warning ... ok
brian2.tests.test_network.test_scheduling_summary_magic ... ok
brian2.tests.test_network.test_scheduling_summary ... ok
brian2.tests.test_network.test_magic_network ... FAIL
brian2.tests.test_network.test_network_stop ... FAIL
brian2.tests.test_network.test_network_operations ... FAIL
brian2.tests.test_network.test_incorrect_network_operations ... ok
brian2.tests.test_network.test_network_active_flag ... FAIL
brian2.tests.test_network.test_network_t ... FAIL
brian2.tests.test_network.test_incorrect_dt_defaultclock ... ok
brian2.tests.test_network.test_incorrect_dt_custom_clock ... ok
brian2.tests.test_network.test_network_remove ... FAIL
brian2.tests.test_network.test_invalid_magic_network ... FAIL
brian2.tests.test_network.test_multiple_networks_invalid ... ok
Test that holding a weak reference to an object does not make it get ... ok
Test that creating unused objects does not affect the magic system. ... ok
brian2.tests.test_network.test_network_access ... ok
brian2.tests.test_network.test_dependency_check ... ok
Make sure all expected objects are collected in a magic network ... ok
Very basic test of progress reporting ... FAIL
Test wrong use of the report option ... NOT_IMPLEMENTED: The C++ standalone device does not support multiple report functions, each run has to use the same (or none).
brian2.tests.test_network.test_store_restore ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_store_restore_to_file ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_store_restore_to_file_new_objects ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_store_restore_to_file_differing_nets ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_store_restore_magic ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_store_restore_magic_to_file ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_store_restore_spikequeue ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_defaultclock_dt_changes ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_dt_restore ... NOT_IMPLEMENTED: The store/restore mechanism is not supported in the C++ standalone
brian2.tests.test_network.test_continuation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_get_set_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_multiple_runs_defaultclock ... ok
brian2.tests.test_network.test_multiple_runs_defaultclock_incorrect ... ok
brian2.tests.test_network.test_profile_ipython_html ... ok
Check that `start_scope` works as expected. ... ok
brian2.tests.test_network.test_small_runs ... WARNING The expression "(i + 1) / N" divides two integer values. In previous versions of Brian, this would have used either an integer ("flooring") or a floating point division, depending on the Python version and the code generation target. In the current version, it always uses a floating point division. Explicitly ask for an integer division ("//"), or turn one of the operands into a floating point value (e.g. replace "1/2" by "1.0/2") to no longer receive this warning. [brian2.parsing.bast.floating_point_division]
NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_long_run_dt_change ... ok
A basic test that creating a NeuronGroup works. ... ok
Test that integer operations and variable definitions work. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test the correct creation of the variables dictionary. ... ok
brian2.tests.test_neurongroup.test_variableview_calculations ... ok
Test incorrect uses of linked variables. ... ok
Test linking a variable with an index specified as an array ... ok
Test a "repeat"-like connection between two groups of different size ... ok
Linked to a linked variable, without indices ... ok
Linked to a linked variable, first without indices, second with indices ... ok
Linked to a linked variable, first with indices, second without indices ... ok
Linked to a linked variable, both use indices ... ok
Link to a linked variable that links to a linked variable, all use indices ... ok
Test linking a variable from a subgroup ... ok
Test linking a variable from a subgroup with indexing ... ok
Test errors when providing incorrect index arrays ... ok
Test linking to a synaptic variable (should raise an error). ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset_incorrect ... ok
Test that the namespace does not have to be complete at creation time. ... ok
brian2.tests.test_neurongroup.test_namespace_errors ... ok
brian2.tests.test_neurongroup.test_namespace_warnings ... ok
Test that unit errors in thresholds and resets are detected. ... ok
Test that syntax errors are already caught at initialization time. ... ok
brian2.tests.test_neurongroup.test_custom_events ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_incorrect_custom_event_definition ... ok
brian2.tests.test_neurongroup.test_state_variable_access ... ok
brian2.tests.test_neurongroup.test_unknown_state_variables ... ok
brian2.tests.test_neurongroup.test_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_subexpression_with_constant ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_scalar_parameter_access ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_scalar_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_constant_subexpression_order ... ok
brian2.tests.test_neurongroup.test_subexpression_checks ... ok
brian2.tests.test_neurongroup.test_repr ... ok
brian2.tests.test_neurongroup.test_ipython_html ... ok
brian2.tests.test_neurongroup.test_indices ... ERROR
Check the utility function get_dtype ... ok
brian2.tests.test_neurongroup.test_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_set_states ... FAIL
brian2.tests.test_neurongroup.test_get_states_pandas ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_set_states_pandas ... ok
brian2.tests.test_neurongroup.test_no_code ... ok
brian2.tests.test_parsing.test_parse_expressions_python ... ok
brian2.tests.test_parsing.test_parse_expressions_numpy ... ok
brian2.tests.test_parsing.test_parse_expressions_sympy ... ok
brian2.tests.test_parsing.test_abstract_code_dependencies ... ok
brian2.tests.test_parsing.test_is_boolean_expression ... ok
brian2.tests.test_parsing.test_parse_expression_unit ... ok
brian2.tests.test_parsing.test_value_from_expression ... ok
brian2.tests.test_parsing.test_abstract_code_from_function ... ok
brian2.tests.test_parsing.test_extract_abstract_code_functions ... ok
brian2.tests.test_parsing.test_substitute_abstract_code_functions ... ok
brian2.tests.test_parsing.test_sympytools ... ok
brian2.tests.test_parsing.test_error_messages ... ok
brian2.tests.test_poissongroup.test_rate_unit_check ... ok
brian2.tests.test_poissongroup.test_poissongroup_namespace ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissoninput.test_poissoninput_errors ... ok
brian2.tests.test_preferences.test_defaultvalidator ... ok
brian2.tests.test_preferences.test_brianpreference ... ok
Test that you cannot set illegal preference names. ... ok
brian2.tests.test_preferences.test_brianglobalpreferences ... ok
Test various ways of accessing preferences ... ok
brian2.tests.test_preferences.test_str_repr ... ok
brian2.tests.test_refractory.test_add_refractoriness ... ok
brian2.tests.test_refractory.test_missing_refractory_warning ... ok
brian2.tests.test_refractory.test_refractoriness_types ... ok
Test that the conditional_write attribute is set correctly ... ok
brian2.tests.test_spatialneuron.test_custom_events ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spatialneuron.test_construction ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spatialneuron.test_construction_coordinates ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spatialneuron.test_allowed_integration ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_indexing ... ok
brian2.tests.test_spatialneuron.test_tree_index_consistency ... ok
brian2.tests.test_spatialneuron.test_spatialneuron_subtree_assignment ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spatialneuron.test_spatialneuron_morphology_assignment ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spikegenerator.test_spikegenerator_incorrect_values ... ok
Test that you cannot provide incorrect period arguments or combine ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_multiple_spikes_per_bin ... ok
brian2.tests.test_spikequeue.test_spikequeue ... ok
Test the parsing of explicit state updater descriptions. ... ok
brian2.tests.test_stateupdaters.test_non_autonomous_equations ... ok
Assure that __str__ and __repr__ do not raise errors ... ok
brian2.tests.test_stateupdaters.test_multiple_noise_variables_basic ... ok
Make sure that the code does the distinction between temporary variables ... ok
Make sure that the code does the distinction between temporary variables ... ok
Check whether the returned abstract code is as expected. ... ok
Test integration for a simple model with several state variables. ... ok
brian2.tests.test_stateupdaters.test_illegal_calls ... ok
brian2.tests.test_stateupdaters.test_priority ... ok
Test state updater registration. ... ok
Test the determination of suitable state updaters. ... WARNING The 'independent' state updater is deprecated and might be removed in future versions of Brian. [brian2.stateupdaters.exact.deprecated_independent]
ok
brian2.tests.test_stateupdaters.test_locally_constant_check ... ok
Test the string representation of a subgroup. ... ok
brian2.tests.test_subgroup.test_state_variables_group_as_index ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_state_variables_group_as_index_problematic ... ok
brian2.tests.test_subgroup.test_synapses_access_subgroups_problematic ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_wrong_indexing ... ok
A basic test that creating a Synapses object works. ... ok
brian2.tests.test_synapses.test_creation_errors ... ok
brian2.tests.test_synapses.test_name_clashes ... ok
brian2.tests.test_synapses.test_equations_unit_check ... ok
brian2.tests.test_synapses.test_pre_before_post ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_invalid_custom_event ... ok
Make sure that a `Synapse` object uses the correct clocks. ... ok
brian2.tests.test_synapses.test_no_synapses ... FAIL
brian2.tests.test_synapses.test_no_synapses_variable_write ... ok
brian2.tests.test_synapses.test_multiple_summed_variables ... ok
brian2.tests.test_synapses.test_summed_variables_overlapping_subgroups ... ok
brian2.tests.test_synapses.test_summed_variables_linked_variables ... ok
brian2.tests.test_synapses.test_repr ... ok
brian2.tests.test_synapses.test_pre_post_variables ... ok
brian2.tests.test_synapses.test_variables_by_owner ... ok
brian2.tests.test_synapses.test_permutation_analysis ... ok
brian2.tests.test_synapses.test_synapse_generator_syntax ... ok
brian2.tests.test_synapses.test_synapse_generator_range_noint ... ok
brian2.tests.test_templates.test_templates ... ok
brian2.tests.test_timedarray.test_timedarray_direct_use ... ok
brian2.tests.test_timedarray.test_timedarray_incorrect_use ... ok
Test the construction of quantity objects ... ok
Test various ways of getting/comparing the dimensions of a quantity. ... ok
Test displaying a quantity in different units ... ok
brian2.tests.test_units.test_scale ... ok
Test pickling of units. ... ok
Test that str representations do not raise any errors and that repr ... ok
brian2.tests.test_units.test_slicing ... ok
brian2.tests.test_units.test_setting ... ok
brian2.tests.test_units.test_multiplication_division ... ok
brian2.tests.test_units.test_addition_subtraction ... ok
brian2.tests.test_units.test_unary_operations ... ok
Test whether binary operations work when they should and raise ... ok
Test raising quantities to a power. ... ok
brian2.tests.test_units.test_inplace_operations ... ok
Test functions that discard units. ... ok
Test the unitsafe functions wrapping their numpy counterparts. ... ok
Test a couple of functions/methods that need special treatment. ... ok
brian2.tests.test_units.test_numpy_functions_same_dimensions ... ok
Check numpy functions that return indices. ... ok
Test that numpy functions that should work on dimensionless quantities only ... ok
Test some numpy functions that change the dimensions of the quantity. ... ok
Assures that certain numpy functions raise a TypeError when called on ... ok
Assure that logical numpy functions work on all quantities and return ... ok
brian2.tests.test_units.test_arange_linspace ... ok
Test converting to and from a list. ... ok
Test the check_units decorator ... ok
Test get_unit ... ok
brian2.tests.test_units.test_get_best_unit ... ok
Check switching off unit checks (used for external functions). ... ok
Test the fail_for_dimension_mismatch function. ... ok
brian2.tests.test_units.test_deepcopy ... ok
brian2.tests.test_units.test_inplace_on_scalars ... ok
brian2.tests.test_units.test_all_units_list ... ok
brian2.tests.test_units.test_constants ... ok
Test information about the environment we are running under. ... ok
brian2.tests.test_utils.test_spell_check ... ok
brian2.tests.test_variables.test_construction_errors ... ok
brian2.tests.test_variables.test_str_repr ... ok
brian2.tests.test_variables.test_dtype_str ... ok
======================================================================
ERROR: brian2.tests.test_neurongroup.test_indices
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1257, in test_indices
assert_allclose(G.indices[5:], G.indices['i >= 5'])
File "D:\programming\brian2\brian2\groups\group.py", line 304, in __getitem__
codeobj_class=device.code_object_class(fallback_pref='codegen.string_expression_target')
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 214, in create_runner_codeobj
template = getattr(codeobj_class.templater, template_name)
File "D:\programming\brian2\brian2\codegen\templates.py", line 121, in __getattr__
return self.templates.get_template(item)
File "D:\programming\brian2\brian2\codegen\templates.py", line 77, in get_template
raise KeyError('No template with name "%s" found.' % name)
KeyError: 'No template with name "group_get_indices" found.'
======================================================================
FAIL: brian2.tests.test_devices.test_set_reset_device_implicit
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_devices.py", line 45, in test_set_reset_device_implicit
assert get_device() is runtime_device
AssertionError
======================================================================
FAIL: brian2.tests.test_network.test_network_single_object
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 78, in test_network_single_object
assert_equal(x.count, 10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 10
======================================================================
FAIL: brian2.tests.test_network.test_network_two_objects
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 93, in test_network_two_objects
assert_equal(x.count, 10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 10
======================================================================
FAIL: brian2.tests.test_network.test_network_from_dict
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 108, in test_network_from_dict
assert_equal(x.count, 10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 10
======================================================================
FAIL: brian2.tests.test_network.test_network_different_clocks
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 133, in test_network_different_clocks
assert updates == ('xxxxxxxxxxy'*100000)
AssertionError
======================================================================
FAIL: brian2.tests.test_network.test_network_different_when
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 145, in test_network_different_when
assert_equal(''.join(NameLister.updates), 'xyxyxy')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ''
DESIRED: 'xyxyxy'
======================================================================
FAIL: brian2.tests.test_network.test_network_schedule_change
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 165, in test_network_schedule_change
assert_equal(''.join(NameLister.updates), 'xyxyxy')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ''
DESIRED: 'xyxyxy'
======================================================================
FAIL: brian2.tests.test_network.test_network_before_after_schedule
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 180, in test_network_before_after_schedule
assert_equal(''.join(NameLister.updates), 'yxyxyx')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ''
DESIRED: 'yxyxyx'
======================================================================
FAIL: brian2.tests.test_network.test_network_custom_slots
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 192, in test_network_custom_slots
assert_equal(''.join(NameLister.updates), 'xyzxyzxyz')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ''
DESIRED: 'xyzxyzxyz'
======================================================================
FAIL: brian2.tests.test_network.test_magic_network
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 381, in test_magic_network
assert_equal(x.count, 100)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 100
======================================================================
FAIL: brian2.tests.test_network.test_network_stop
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 407, in test_network_stop
assert_equal(defaultclock.t, 1*ms)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 780, in assert_array_compare
raise AssertionError(msg)
AssertionError:
Arrays are not equal
(mismatch 100.0%)
x: Quantity(0.01)
y: Quantity(0.001)
======================================================================
FAIL: brian2.tests.test_network.test_network_operations
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 449, in test_network_operations
assert_equal(''.join(seq), 'bBacC'*10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: ''
DESIRED: 'bBacCbBacCbBacCbBacCbBacCbBacCbBacCbBacCbBacCbBacC'
======================================================================
FAIL: brian2.tests.test_network.test_network_active_flag
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 484, in test_network_active_flag
assert_equal(x.count, 10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 10
======================================================================
FAIL: brian2.tests.test_network.test_network_t
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 499, in test_network_t
assert_equal(x.count, 5)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 5
======================================================================
FAIL: brian2.tests.test_network.test_network_remove
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 563, in test_network_remove
assert_equal(x.count, 10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 10
======================================================================
FAIL: brian2.tests.test_network.test_invalid_magic_network
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 585, in test_invalid_magic_network
assert_equal(x.count, 10)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 414, in assert_equal
raise AssertionError(msg)
AssertionError:
Items are not equal:
ACTUAL: 0
DESIRED: 10
======================================================================
FAIL: Very basic test of progress reporting
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 820, in test_progress_report
assert len(out.split('\n')) >= 2 and len(err) == 0
AssertionError
======================================================================
FAIL: brian2.tests.test_neurongroup.test_set_states
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1369, in test_set_states
assert_raises(DimensionMismatchError, lambda: G.set_states({'x': np.arange(2, 12)*volt}, units=True))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 1235, in assert_raises
return _d.assertRaises(*args,**kwargs)
AssertionError: DimensionMismatchError not raised
======================================================================
FAIL: brian2.tests.test_synapses.test_no_synapses
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1126, in test_no_synapses
assert_raises(TypeError, lambda: net.run(1*ms))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 1235, in assert_raises
return _d.assertRaises(*args,**kwargs)
AssertionError: TypeError not raised
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_rate_monitor_smoothed_rate
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 456, in test_rate_monitor_smoothed_rate
except_index = np.array([idx for idx in xrange(len(r_mon.rate))
File "D:\programming\brian2\brian2\core\variables.py", line 1238, in __len__
return len(self.get_item(slice(None), level=1))
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test wrong use of the report option
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 855, in test_progress_report_incorrect
assert_raises(ValueError, lambda: net.run(1*ms, report='unknown'))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 1235, in assert_raises
return _d.assertRaises(*args,**kwargs)
File "C:\Anaconda\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "D:\programming\brian2\brian2\tests\test_network.py", line 855, in <lambda>
assert_raises(ValueError, lambda: net.run(1*ms, report='unknown'))
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1249, in network_run
raise NotImplementedError('The C++ standalone device does not '
NotImplementedError: The C++ standalone device does not support multiple report functions, each run has to use the same (or none).
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 910, in test_store_restore
net.store() # default time slot
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore_to_file
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 953, in test_store_restore_to_file
net.store(filename=filename) # default time slot
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore_to_file_new_objects
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1007, in test_store_restore_to_file_new_objects
net.store(filename=filename) # default time slot
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore_to_file_differing_nets
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1045, in test_store_restore_to_file_differing_nets
net.store(filename=filename)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore_magic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1069, in test_store_restore_magic
store() # default time slot
File "D:\programming\brian2\brian2\core\magic.py", line 391, in store
magic_network.store(name=name, filename=filename, level=1)
File "D:\programming\brian2\brian2\core\magic.py", line 238, in store
super(MagicNetwork, self).store(name=name, filename=filename)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore_magic_to_file
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1108, in test_store_restore_magic_to_file
store(filename=filename) # default time slot
File "D:\programming\brian2\brian2\core\magic.py", line 391, in store
magic_network.store(name=name, filename=filename, level=1)
File "D:\programming\brian2\brian2\core\magic.py", line 238, in store
super(MagicNetwork, self).store(name=name, filename=filename)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_store_restore_spikequeue
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1146, in test_store_restore_spikequeue
store()
File "D:\programming\brian2\brian2\core\magic.py", line 391, in store
magic_network.store(name=name, filename=filename, level=1)
File "D:\programming\brian2\brian2\core\magic.py", line 238, in store
super(MagicNetwork, self).store(name=name, filename=filename)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_defaultclock_dt_changes
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1167, in test_defaultclock_dt_changes
assert_equal(mon.t[:], [0, dt/ms]*ms)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_dt_restore
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1192, in test_dt_restore
net.store()
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1302, in network_store
raise NotImplementedError(('The store/restore mechanism is not '
NotImplementedError: The store/restore mechanism is not supported in the C++ standalone
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_continuation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1224, in test_continuation
assert_equal(mon.t[:], mon2.t[:])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_get_set_states
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1234, in test_get_set_states
states1 = net.get_states()
File "D:\programming\brian2\brian2\core\network.py", line 648, in get_states
level=level+1)
File "D:\programming\brian2\brian2\groups\group.py", line 536, in get_states
data = ImportExport.methods[format].export_data(self, vars, units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 23, in export_data
copy=True, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_small_runs
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1370, in test_small_runs
assert_allclose(mon_1.t_[:], mon_2.t_[:])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test that integer operations and variable definitions work.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 71, in test_integer_variables_and_mod
assert_equal(G.j[:], G.i[:]%n)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_custom_events
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 745, in test_custom_events
assert_allclose(G.event_time1[:], [0, 1]*ms)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1051, in test_subexpression
assert_allclose(G.expr[:], 2*10*np.arange(10)*Hz + 5*Hz)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_subexpression_with_constant
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1059, in test_subexpression_with_constant
assert_allclose(G.I[:], np.array([2]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_scalar_parameter_access
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1113, in test_scalar_parameter_access
assert_allclose(G.freq[:], 150*Hz)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_scalar_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1141, in test_scalar_subexpression
assert G.sub[:] == 150*Hz
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_get_states
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1338, in test_get_states
states_units = G.get_states(['v', 'x', 'subexpr', 'subexpr2'], units=True)
File "D:\programming\brian2\brian2\groups\group.py", line 536, in get_states
data = ImportExport.methods[format].export_data(self, vars, units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 23, in export_data
copy=True, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_get_states_pandas
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1394, in test_get_states_pandas
states = G.get_states(['v', 'x', 'subexpr', 'subexpr2'], units=False, format='pandas')
File "D:\programming\brian2\brian2\groups\group.py", line 536, in get_states
data = ImportExport.methods[format].export_data(self, vars, units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 56, in export_data
units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 23, in export_data
copy=True, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissongroup.test_poissongroup_namespace
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissongroup.py", line 118, in test_poissongroup_namespace
assert mon.num_spikes == 2
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 428, in num_spikes
return self.num_events
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 340, in num_events
return self.N[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spatialneuron.test_custom_events
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 32, in test_custom_events
assert_allclose(G.event_time1[:], [0.1, 0, 0]*ms)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spatialneuron.test_construction
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 61, in test_construction
assert_allclose(neuron.L.main.v, 0*mV)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spatialneuron.test_construction_coordinates
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 123, in test_construction_coordinates
assert_allclose(neuron.L.main.v, 0*mV)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spatialneuron.test_spatialneuron_subtree_assignment
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 728, in test_spatialneuron_subtree_assignment
neuron.sec1.v += 1*volt
File "D:\programming\brian2\brian2\groups\group.py", line 425, in __setattr__
level=level+1)
File "D:\programming\brian2\brian2\core\variables.py", line 913, in set_item
check_units=check_units)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 406, in variableview_set_with_index_array
value = Quantity(value)
File "D:\programming\brian2\brian2\units\fundamentalunits.py", line 919, in __new__
subarr = np.array(arr, dtype=dtype, copy=copy).view(cls)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spatialneuron.test_spatialneuron_morphology_assignment
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 752, in test_spatialneuron_morphology_assignment
assert_allclose(neuron.sec1.sec11.v[:], np.ones(2)*volt)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_state_variables_group_as_index
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 106, in test_state_variables_group_as_index
assert_equal(G.v[:], np.array([0, 0, 0, 0, 1, 1, 1, 1, 1, 0]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapses_access_subgroups_problematic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 467, in test_synapses_access_subgroups_problematic
S.w.__setitem__(item, value)
File "D:\programming\brian2\brian2\core\variables.py", line 928, in __setitem__
self.set_item(item, value, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 922, in set_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 993, in set_with_expression
indices = np.atleast_1d(self.indexing(item))
File "D:\programming\brian2\brian2\synapses\synapses.py", line 531, in __call__
pre_synapses = find_synapses(I, self.synaptic_pre.get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_pre_before_post
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 873, in test_pre_before_post
assert G.x == 2
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
----------------------------------------------------------------------
Ran 347 tests in 42.780s
FAILED (NOT_IMPLEMENTED=31, SKIP=2, errors=1, failures=19)
Running tests for target numpy:
brian2.tests.test_GSL.test_GSL_default_function ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_different_clocks ... ok
brian2.tests.test_GSL.test_GSL_error_bounds ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless1 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless2 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_unit ... ok
brian2.tests.test_GSL.test_GSL_error_incorrect_error_format ... ok
brian2.tests.test_GSL.test_GSL_error_nonODE_variable ... ok
brian2.tests.test_GSL.test_GSL_error_nonexisting_variable ... ok
brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error ... FAIL
brian2.tests.test_GSL.test_GSL_method_options_neurongroup ... ok
brian2.tests.test_GSL.test_GSL_method_options_spatialneuron ... ok
brian2.tests.test_GSL.test_GSL_method_options_synapses ... ok
brian2.tests.test_GSL.test_GSL_non_autonomous ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_refractory ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_save_step_count ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_stateupdater_basic ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_user_defined_function ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_x_variable ... ok
brian2.tests.test_base.test_active_flag ... ok
brian2.tests.test_codegen.test_clear_cache_numpy ... ok
brian2.tests.test_codegen.test_clear_cache_weave ... SKIP: weave-only test
brian2.tests.test_codegen.test_clear_cache_cython ... SKIP: Cython-only test
brian2.tests.test_complex_examples.test_cuba ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Make sure that symbolic constants use the correct values in code ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test that math functions give the same result, regardless of whether used ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_clip ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_bool_to_int ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_timestep_function_during_run ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_user_defined_function ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test the preparation of functions for use in code with check_units. ... NOT_IMPLEMENTED: Cannot use function all_specified: 'No implementation available for target cpp. Available implementations: '
brian2.tests.test_functions.test_simple_user_defined_function ... NOT_IMPLEMENTED: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 335, in code_object
name=name)
File "D:\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 167, in __init__
self.variables_to_namespace()
File "D:\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 190, in variables_to_namespace
value = var.get_value()
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Error encountered with object named "statemonitor_1".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
(See above for original error message and traceback.)
brian2.tests.test_functions.test_manual_user_defined_function ... NOT_IMPLEMENTED: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
Error encountered with object named "statemonitor_1".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
(See above for original error message and traceback.)
brian2.tests.test_functions.test_manual_user_defined_function_weave ... SKIP: weave-only test
brian2.tests.test_functions.test_function_dependencies_weave ... SKIP: weave-only test
brian2.tests.test_functions.test_function_dependencies_cython ... SKIP: cython-only test
brian2.tests.test_functions.test_function_dependencies_numpy ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_binomial ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_declare_types ... NOT_IMPLEMENTED: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function f: 'No implementation available for target cpp. Available implementations: numpy'
Error encountered with object named "neurongroup_1_stateupdater".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
An error occurred when preparing an object. NotImplementedError: Cannot use function f: 'No implementation available for target cpp. Available implementations: numpy'
(See above for original error message and traceback.)
brian2.tests.test_functions.test_multiple_stateless_function_calls ... ok
brian2.tests.test_monitor.test_spike_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_indexing ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables with string expressions in standalone scripts.
brian2.tests.test_monitor.test_spike_monitor_variables ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_subgroups ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_bug_824 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_event_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_event_monitor_no_record ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_trains ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_synapses_state_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor_record_single_timestep ... ok
brian2.tests.test_monitor.test_state_monitor_indexing ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor_resize ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_1 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_subgroups ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_subgroups_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_morphology.test_tree_cables_from_swc ... ok
Somewhat realistic test with a loop of magic networks ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_multiple_runs_report_standalone ... Starting simulation at t=0.001 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
ok
brian2.tests.test_network.test_multiple_runs_report_standalone_2 ... Starting simulation at t=0.001 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
ok
brian2.tests.test_network.test_multiple_runs_report_standalone_3 ... Starting simulation at t=0 s for duration 0.001 s
0.001 s (100%) simulated in 0.001 s
Starting simulation at t=0.001 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
ok
brian2.tests.test_network.test_dt_changes_between_runs ... ok
brian2.tests.test_network.test_profile ... ERROR
brian2.tests.test_network.test_profile_off ... ok
brian2.tests.test_network.test_runtime_rounding ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_multiple_runs_constant_change ... ok
brian2.tests.test_network.test_multiple_runs_function_change ... ok
Test that a NeuronGroup with a stochastic variable can be simulated. Only ... ok
Test that a NeuronGroup with multiplicative noise can be simulated. Only ... ok
Test the correct handling of scalar variables ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test the correct handling of referred scalar variables in subexpressions ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test correct uses of linked variables. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test linked variable from a size 1 group. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test a subexpression referring to a linked variable. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test a linked variable referring to a subexpression without indices ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test a linked variable referring to a subexpression with indices ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test a complicated setup (not unlikely when using brian hears) ... ok
brian2.tests.test_neurongroup.test_linked_var_in_reset ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_linked_var_in_reset_size_1 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test that threshold and reset work in the expected way. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_custom_events_schedule ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test the setting and accessing of state variables. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_state_variable_access_strings ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables with string expressions in standalone scripts.
brian2.tests.test_neurongroup.test_state_variable_set_strings ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_sim_with_scalar_variable ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_sim_with_scalar_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_constant_variable_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test an issue around variables aliasing other variables (#259) ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_random_vector_values ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_random_values_random_seed ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_random_values_fixed_seed ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_random_values_fixed_and_random ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_run_regularly_scheduling ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_run_regularly_dt ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_semantics_floor_division ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_semantics_floating_point_division ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_neurongroup.test_semantics_mod ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_numpy_codegen.test_error_message ... NOT_IMPLEMENTED: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
Error encountered with object named "neurongroup_2_run_regularly".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
(See above for original error message and traceback.)
brian2.tests.test_parsing.test_parse_expressions_cpp ... SKIP: weave-only test
brian2.tests.test_poissongroup.test_single_rates ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissongroup.test_rate_arrays ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissongroup.test_time_dependent_rate ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissongroup.test_propagation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissongroup.test_poissongroup_subgroup ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissoninput.test_poissoninput ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_poissoninput.test_poissoninput_refractory ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_refractoriness_basic ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_refractoriness_variables ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_refractoriness_threshold_basic ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_refractoriness_repeated ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_refractoriness_repeated_legacy ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_refractoriness_threshold ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_conditional_write_behaviour ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_refractory.test_conditional_write_automatic_and_manual ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test simulation of an infinite cable vs. theory for current pulse (Green function) ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test simulation of short cylinder vs. theory for constant current. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Rallpack 1 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Rallpack 2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Rallpack 3 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test simulation of a cylinder plus two branches, with diameters according to Rall's formula ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spatialneuron.test_basic_diffusion ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spatialneuron.test_spatialneuron_capacitive_currents ... ok
Test that `SpikeGeneratorGroup` connects properly. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Basic test for `SpikeGeneratorGroup`. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Basic test for `SpikeGeneratorGroup` with already sorted spike events. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Basic test for `SpikeGeneratorGroup`. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Basic test for `SpikeGeneratorGroup`. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spikegenerator.test_spikegenerator_change_spikes ... ok
Basic test for `SpikeGeneratorGroup`. ... ok
brian2.tests.test_spikegenerator.test_spikegenerator_rounding ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_long ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_spikegenerator.test_spikegenerator_rounding_period ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_stateupdaters.test_multiple_noise_variables_extended ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_stateupdaters.test_multiple_noise_variables_deterministic_noise ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_stateupdaters.test_pure_noise_deterministic ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Make sure that the integration of a (non-stochastic) differential equation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Make sure that the integration of a (non-stochastic) differential equation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_stateupdaters.test_refractory ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_stateupdaters.test_refractory_stochastic ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_stateupdaters.test_check_for_invalid_values_linear_integrator ... ok
Test the setting and accessing of state variables in subgroups. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_state_variables_simple ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test accessing subgroups with string indices. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables with string expressions in standalone scripts.
brian2.tests.test_subgroup.test_state_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Make sure that shared variables work with subgroups ... ok
brian2.tests.test_subgroup.test_synapse_creation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synapse_creation_state_vars ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synapse_creation_generator ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synapse_creation_generator_multiple_synapses ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synapse_creation_generator_complex_ranges ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synapse_creation_generator_random ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synapse_access ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables with string expressions in standalone scripts.
brian2.tests.test_subgroup.test_synapses_access_subgroups ... NOT_IMPLEMENTED: Cannot set variable "w" this way in standalone, try using string expressions.
brian2.tests.test_subgroup.test_subgroup_summed_variable ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Assure that subexpressions in targeted groups are handled correctly. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Assure that subexpressions are handled correctly, even ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synaptic_propagation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_synaptic_propagation_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_run_regularly ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_subgroup.test_spike_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Using subgroups without keeping an explicit reference. Basic access. ... ok
Using subgroups without keeping an explicit reference. Monitors ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Using subgroups without keeping an explicit reference. Monitors ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Using subgroups without keeping an explicit reference. Synapses ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Create a subgroup of a subgroup ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test the count of outgoing/incoming synapses per neuron. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test connecting synapses with explictly given arrays ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_string_deterministic_full ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_string_deterministic_full_no_self ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_string_deterministic_full_one_to_one ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_string_deterministic_full_custom ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_string_deterministic_multiple_and ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_random_with_condition ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_random_with_condition_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test random connections. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_connection_random_without_condition ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test multiple synapses per connection. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Assign values to state variables in various ways ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_state_variable_indexing ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_indices ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Assure that subexpressions in targeted groups are handled correctly. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_constant_variable_subexpression_in_synapses ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Assure that subexpressions in targeted groups are handled correctly. ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_delay_specification ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_delays_pathways ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_delays_pathways_subgroups ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_pre_post_simple ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_simple ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_custom_event ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_all_to_one_heterogeneous_delays ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_one_to_all_heterogeneous_delays ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_scalar_delay ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_scalar_delay_different_clocks ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_transmission_boolean_variable ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_changed_dt_spikes_in_queue ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_summed_variable ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_summed_variable_pre_and_post ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_summed_variable_differing_group_size ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_summed_variable_errors ... ok
brian2.tests.test_synapses.test_summed_variables_subgroups ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_scalar_parameter_access ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_scalar_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_sim_with_scalar_variable ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_sim_with_scalar_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_sim_with_constant_subexpression ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_external_variables ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_event_driven ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_vectorisation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_vectorisation_STDP_like ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synaptic_equations ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapse_with_run_regularly ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapses_to_synapses ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapses_to_synapses_statevar_access ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapses_to_synapses_different_sizes ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_ufunc_at_vectorisation ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapses_to_synapses_summed_variable ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapse_generator_deterministic ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapse_generator_deterministic_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapse_generator_random ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapse_generator_random_with_condition ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapse_generator_random_with_condition_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapses_refractory ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_synapses.test_synapses_refractory_rand ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_thresholder.test_simple_threshold ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_thresholder.test_scalar_threshold ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_timedarray.test_timedarray_semantics ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_timedarray.test_timedarray_no_units ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_timedarray.test_timedarray_with_units ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_timedarray.test_timedarray_2d ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_timedarray.test_timedarray_no_upsampling ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Use a very long timedarray (with a big dt), where the upsampling can lead ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_timedarray.test_timedarray_repeated_use ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_units.test_units_vs_quantities ... ok
======================================================================
ERROR: brian2.tests.test_network.test_profile
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1287, in test_profile
info = net.profiling_info
File "D:\programming\brian2\brian2\core\network.py", line 383, in profiling_info
return self.get_profiling_info()
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1312, in network_get_profiling_info
raise ValueError('No profiling info collected (did you run with '
ValueError: No profiling info collected (did you run with profile=True?)
======================================================================
FAIL: brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_GSL.py", line 21, in wrapped
func()
File "D:\programming\brian2\brian2\tests\test_GSL.py", line 416, in test_GSL_fixed_timestep_big_dt_small_error
assert_raises((RuntimeError, IntegrationError), net.run, 10*ms)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 1235, in assert_raises
return _d.assertRaises(*args,**kwargs)
AssertionError: (<type 'exceptions.RuntimeError'>, <class 'brian2.codegen.runtime.GSLcython_rt.GSLcython_rt.IntegrationError'>) not raised
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_complex_examples.test_cuba
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_complex_examples.py", line 39, in test_cuba
assert len(Ce)>0
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Make sure that symbolic constants use the correct values in code
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 34, in test_constants_values
assert_allclose(G.v[:], [np.pi, np.e, np.inf])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test that math functions give the same result, regardless of whether used
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 74, in test_math_functions
assert_allclose(numpy_result, mon.func_.flatten(),
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 322, in __getattr__
return self.variables[item[:-1]].get_value().T
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_clip
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 118, in test_clip
assert_equal(s_mon.clipexpr1.flatten(), [0, 1, 0, 1])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_bool_to_int
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 139, in test_bool_to_int
assert_equal(s_mon.intexpr1.flatten(), [1, 0])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_timestep_function_during_run
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 167, in test_timestep_function_during_run
assert all(mon.ts[0] < -1e9)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_user_defined_function
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 197, in test_user_defined_function
assert_allclose(np.sin(test_array), mon.func_.flatten())
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 322, in __getattr__
return self.variables[item[:-1]].get_value().T
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test the preparation of functions for use in code with check_units.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 224, in test_user_defined_function_units
G.c = 'all_specified(a, b, t)'
File "D:\programming\brian2\brian2\groups\neurongroup.py", line 725, in __setattr__
Group.__setattr__(self, key, value, level=1)
File "D:\programming\brian2\brian2\groups\group.py", line 425, in __setattr__
level=level+1)
File "D:\programming\brian2\brian2\core\variables.py", line 892, in set_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1054, in set_with_expression_conditional
codeobj_class=device.code_object_class(fallback_pref='codegen.string_expression_target'))
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function all_specified: 'No implementation available for target cpp. Available implementations: '
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_simple_user_defined_function
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 255, in test_simple_user_defined_function
net.run(default_dt)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1190, in network_run
net.before_run(namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\network.py", line 843, in before_run
raise brian_object_exception("An error occurred when preparing an object.", obj, ex)
BrianObjectException: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 335, in code_object
name=name)
File "D:\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 167, in __init__
self.variables_to_namespace()
File "D:\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 190, in variables_to_namespace
value = var.get_value()
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Error encountered with object named "statemonitor_1".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
(See above for original error message and traceback.)
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_manual_user_defined_function
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 321, in test_manual_user_defined_function
net.run(default_dt)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1190, in network_run
net.before_run(namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\network.py", line 843, in before_run
raise brian_object_exception("An error occurred when preparing an object.", obj, ex)
BrianObjectException: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
Error encountered with object named "statemonitor_1".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
(See above for original error message and traceback.)
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_function_dependencies_numpy
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 568, in test_function_dependencies_numpy
assert_allclose(G.v_[:], 84*0.001)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_binomial
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 584, in test_binomial
assert np.var(mon[0].x) > 0
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_functions.test_declare_types
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 650, in test_declare_types
assert_raises(TypeError, bad_type)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 1235, in assert_raises
return _d.assertRaises(*args,**kwargs)
File "C:\Anaconda\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
File "D:\programming\brian2\brian2\tests\test_functions.py", line 649, in bad_type
Network(G).run(1*ms)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1190, in network_run
net.before_run(namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\network.py", line 843, in before_run
raise brian_object_exception("An error occurred when preparing an object.", obj, ex)
BrianObjectException: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function f: 'No implementation available for target cpp. Available implementations: numpy'
Error encountered with object named "neurongroup_1_stateupdater".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\unittest\case.py", line 473, in assertRaises
callableObj(*args, **kwargs)
An error occurred when preparing an object. NotImplementedError: Cannot use function f: 'No implementation available for target cpp. Available implementations: numpy'
(See above for original error message and traceback.)
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_monitor
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 35, in test_spike_monitor
spike_trains = mon.spike_trains()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 454, in spike_trains
return self.event_trains()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 333, in event_trains
return self.values('t')
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 491, in values
return super(SpikeMonitor, self).values(var)
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 260, in values
indices = self.i[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_monitor_indexing
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 65, in test_spike_monitor_indexing
assert_array_equal(mon.t['i == 1'], [1]*ms)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 822, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 512, in variableview_get_with_expression
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables with string expressions in standalone scripts.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_monitor_variables
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 85, in test_spike_monitor_variables
all_values = mon1.all_values()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 527, in all_values
return super(SpikeMonitor, self).all_values()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 306, in all_values
indices = self.i[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_monitor_get_states
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 113, in test_spike_monitor_get_states
all_states = mon1.get_states()
File "D:\programming\brian2\brian2\groups\group.py", line 536, in get_states
data = ImportExport.methods[format].export_data(self, vars, units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 23, in export_data
copy=True, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_monitor_subgroups
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 132, in test_spike_monitor_subgroups
assert_allclose(spikes_all.i, [0, 4, 5])
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_monitor_bug_824
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 152, in test_spike_monitor_bug_824
assert_array_equal(spikes_1.count, [4, 0, 0])
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_event_monitor
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 171, in test_event_monitor
event_trains = mon.event_trains()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 333, in event_trains
return self.values('t')
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 260, in values
indices = self.i[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_event_monitor_no_record
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 221, in test_event_monitor_no_record
assert_array_equal(event_mon.count, np.array([1, 0, 10]))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_spike_trains
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 243, in test_spike_trains
trains = monitor.spike_trains()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 454, in spike_trains
return self.event_trains()
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 333, in event_trains
return self.values('t')
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 491, in values
return super(SpikeMonitor, self).values(var)
File "D:\programming\brian2\brian2\monitors\spikemonitor.py", line 260, in values
indices = self.i[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_synapses_state_monitor
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 255, in test_synapses_state_monitor
synapse_mon = StateMonitor(S, 'w', record=S[:, 1])
File "D:\programming\brian2\brian2\synapses\synapses.py", line 929, in __getitem__
indices = self.indices[item]
File "D:\programming\brian2\brian2\groups\group.py", line 308, in __getitem__
return self.indices(item)
File "D:\programming\brian2\brian2\synapses\synapses.py", line 531, in __call__
pre_synapses = find_synapses(I, self.synaptic_pre.get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_state_monitor
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 306, in test_state_monitor
assert_array_equal(nothing_mon.t, v_mon.t)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_state_monitor_indexing
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 370, in test_state_monitor_indexing
assert_array_equal(mon.v, np.array([[5, 5],
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_state_monitor_get_states
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 399, in test_state_monitor_get_states
all_states = mon.get_states()
File "D:\programming\brian2\brian2\groups\group.py", line 536, in get_states
data = ImportExport.methods[format].export_data(self, vars, units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 23, in export_data
copy=True, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_state_monitor_resize
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 418, in test_state_monitor_resize
assert len(mon.t) == 10
File "D:\programming\brian2\brian2\core\variables.py", line 1238, in __len__
return len(self.get_item(slice(None), level=1))
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_rate_monitor_1
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 433, in test_rate_monitor_1
assert_allclose(rate_mon.t, np.arange(10) * defaultclock.dt)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_rate_monitor_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 446, in test_rate_monitor_2
assert_allclose(rate_mon.rate, 0.5 * np.ones(10) / defaultclock.dt)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_rate_monitor_get_states
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 511, in test_rate_monitor_get_states
all_states = rate_mon.get_states()
File "D:\programming\brian2\brian2\groups\group.py", line 536, in get_states
data = ImportExport.methods[format].export_data(self, vars, units=units, level=level)
File "D:\programming\brian2\brian2\importexport\dictlike.py", line 23, in export_data
copy=True, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_rate_monitor_subgroups
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 530, in test_rate_monitor_subgroups
assert_allclose(mean(G.rate_[:]), mean(rate_all.rate_[:]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_monitor.test_rate_monitor_subgroups_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_monitor.py", line 547, in test_rate_monitor_subgroups_2
assert_allclose(rate_all.rate, 0.5 / defaultclock.dt)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Somewhat realistic test with a loop of magic networks
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 745, in test_loop
assert v[0] == 0 and 0 < v[-1] < 1
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_network.test_runtime_rounding
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_network.py", line 1347, in test_runtime_rounding
assert len(mon.t) == 250
File "D:\programming\brian2\brian2\core\variables.py", line 1238, in __len__
return len(self.get_item(slice(None), level=1))
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test the correct handling of scalar variables
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 164, in test_scalar_variable
assert_allclose(G.E_L[:], -70*mV)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test the correct handling of referred scalar variables in subexpressions
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 184, in test_referred_scalar_variable
assert_allclose(G2.out[:], np.arange(10)+1)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test correct uses of linked variables.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 200, in test_linked_variable_correct
assert_allclose(mon1.v[:, :], mon2.v[:, :])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test linked variable from a size 1 group.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 245, in test_linked_variable_scalar
assert len(str(G2.x)) > 0
File "D:\programming\brian2\brian2\core\variables.py", line 1363, in __repr__
values = repr(self[:])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test a subexpression referring to a linked variable.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 401, in test_linked_subexpression
assert all((all(mon[i].I == mon[0].I) for i in xrange(5)))
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 401, in <genexpr>
assert all((all(mon[i].I == mon[0].I) for i in xrange(5)))
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test a linked variable referring to a subexpression without indices
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 421, in test_linked_subexpression_2
assert all(mon[0].I_l == mon1[0].I)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test a linked variable referring to a subexpression with indices
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 443, in test_linked_subexpression_3
assert all((all(mon[i].I_l == mon1[0].I) for i in xrange(5)))
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 443, in <genexpr>
assert all((all(mon[i].I_l == mon1[0].I) for i in xrange(5)))
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_linked_var_in_reset
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 518, in test_linked_var_in_reset
assert_allclose(G1.x[:], [0, 1, 0])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_linked_var_in_reset_size_1
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 532, in test_linked_var_in_reset_size_1
assert_allclose(G1.x[:], 1)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test that threshold and reset work in the expected way.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 660, in test_threshold_reset
assert_allclose(G.v[:], np.array([0, 1, 0.5]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_custom_events_schedule
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 762, in test_custom_events_schedule
assert_allclose(G.event_time[:], [1, 2]*ms)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test the setting and accessing of state variables.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 816, in test_state_variables
assert_allclose(G.v[0], -70*mV)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_state_variable_access_strings
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 903, in test_state_variable_access_strings
assert G.v['i==2'] == G.v[2]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 822, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 512, in variableview_get_with_expression
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables with string expressions in standalone scripts.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_state_variable_set_strings
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1007, in test_state_variable_set_strings
assert_allclose(G.v1[:], [0, 3, 6, 9, 12, 10, 12, 14, 16, 18]*volt)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_sim_with_scalar_variable
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1159, in test_sim_with_scalar_variable
assert_allclose(G.v[:], np.exp(-0.1)*np.linspace(0, 1, 10, endpoint=False))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_sim_with_scalar_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1169, in test_sim_with_scalar_subexpression
assert_allclose(G.v[:], np.exp(-0.1)*np.linspace(0, 1, 10, endpoint=False))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_constant_variable_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1190, in test_constant_variable_subexpression
assert_allclose(G.v3[:], G.v1[:])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test an issue around variables aliasing other variables (#259)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1326, in test_aliasing_in_statements
assert_allclose(g.x_0_[:], np.array([-1]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_random_vector_values
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1439, in test_random_vector_values
assert np.var(G.v[:]) > 0
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_random_values_random_seed
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1456, in test_random_values_random_seed
assert np.var(G.v1[:]) > 0
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_random_values_fixed_seed
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1471, in test_random_values_fixed_seed
assert np.var(G.v1[:]) > 0
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_random_values_fixed_and_random
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1483, in test_random_values_fixed_and_random
first_run_values = np.array(mon.v)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_run_regularly_scheduling
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1523, in test_run_regularly_scheduling
assert_allclose(G.v1[:], 2)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_run_regularly_dt
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1535, in test_run_regularly_dt
assert_allclose(G.v[:], 5)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_semantics_floor_division
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1564, in test_semantics_floor_division
assert_equal(G.a[:], int_values // 3)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_semantics_floating_point_division
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1596, in test_semantics_floating_point_division
assert_allclose(G.x1[:], int_values / 3)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_neurongroup.test_semantics_mod
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_neurongroup.py", line 1627, in test_semantics_mod
assert_equal(G.a[:], int_values % 3)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_numpy_codegen.test_error_message
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_numpy_codegen.py", line 16, in test_error_message
run(defaultclock.dt)
File "D:\programming\brian2\brian2\units\fundamentalunits.py", line 2375, in new_f
result = f(*args, **kwds)
File "D:\programming\brian2\brian2\core\magic.py", line 371, in run
namespace=namespace, profile=profile, level=2+level)
File "D:\programming\brian2\brian2\core\magic.py", line 231, in run
namespace=namespace, profile=profile, level=level+1)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 1190, in network_run
net.before_run(namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\network.py", line 843, in before_run
raise brian_object_exception("An error occurred when preparing an object.", obj, ex)
BrianObjectException: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 302, in code_object
'%s: %s') % (varname, ex))
NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
Error encountered with object named "neurongroup_2_run_regularly".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot use function foo: 'No implementation available for target cpp. Available implementations: '
(See above for original error message and traceback.)
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissongroup.test_single_rates
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissongroup.py", line 26, in test_single_rates
assert_equal(spikes_P0.count, np.zeros(len(P0)))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissongroup.test_rate_arrays
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissongroup.py", line 36, in test_rate_arrays
assert_equal(spikes.count, np.array([0, 2]))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissongroup.test_time_dependent_rate
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissongroup.py", line 67, in test_time_dependent_rate
np.array([int(round(1*ms/defaultclock.dt)), 0]))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissongroup.test_propagation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissongroup.py", line 84, in test_propagation
assert_equal(G.v[:], np.array([0., 2.]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissongroup.test_poissongroup_subgroup
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissongroup.py", line 102, in test_poissongroup_subgroup
assert_equal(G.v[:], np.array([0., 0., 2., 2.]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissoninput.test_poissoninput
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissoninput.py", line 40, in test_poissoninput
assert_equal(0, mon.x[:])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_poissoninput.test_poissoninput_refractory
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_poissoninput.py", line 86, in test_poissoninput_refractory
assert_allclose(mon[5].v[:], expected)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_refractoriness_basic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 52, in test_refractoriness_basic
assert_allclose(mon[0].v[:timestep(10*ms, defaultclock.dt)],
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_refractoriness_variables
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 96, in test_refractoriness_variables
assert_allclose(mon[0].v[:timestep(10*ms, defaultclock.dt)],
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_refractoriness_threshold_basic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 123, in test_refractoriness_threshold_basic
assert_allclose(spike_mon.t, [5, 15] * ms)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_refractoriness_repeated
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 133, in test_refractoriness_repeated
assert spike_mon.t[0] == 0*ms
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_refractoriness_repeated_legacy
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 146, in test_refractoriness_repeated_legacy
assert spike_mon.t[0] == 0*ms
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_refractoriness_threshold
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 179, in test_refractoriness_threshold
assert_allclose(spike_mon.t, [5, 15] * ms)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_conditional_write_behaviour
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 232, in test_conditional_write_behaviour
assert G.x[0] < 0.2
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_refractory.test_conditional_write_automatic_and_manual
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_refractory.py", line 253, in test_conditional_write_automatic_and_manual
assert_allclose(mon.v[:, 0], 0)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test simulation of an infinite cable vs. theory for current pulse (Green function)
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 189, in test_infinitecable
v = mon[N//2-20].v
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test simulation of short cylinder vs. theory for constant current.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 237, in test_finitecable
la = neuron.space_constant[0]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Rallpack 1
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 285, in test_rallpack1
squared_diff_0 = (data_0[:, 1] * volt - mon[0].v)**2
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Rallpack 2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 362, in test_rallpack2
assert_allclose(mon.t/second, data_0[:, 0])
File "D:\programming\brian2\brian2\core\variables.py", line 1265, in __div__
return self.get_item(slice(None), level=1) / np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Rallpack 3
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 447, in test_rallpack3
assert_allclose(mon.t/second, data_0[:, 0])
File "D:\programming\brian2\brian2\core\variables.py", line 1265, in __div__
return self.get_item(slice(None), level=1) / np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test simulation of a cylinder plus two branches, with diameters according to Rall's formula
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 520, in test_rall
assert_allclose(la, neuron.space_constant[0])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spatialneuron.test_basic_diffusion
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spatialneuron.py", line 568, in test_basic_diffusion
assert all(abs(mon.v[:, -1]/mV + 10) < 0.25), mon.v[:, -1]/mV
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test that `SpikeGeneratorGroup` connects properly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 33, in test_spikegenerator_connected
assert all(mon[idx].v == 0)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Basic test for `SpikeGeneratorGroup`.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 55, in test_spikegenerator_basic
_compare_spikes(5, indices, times, s_mon)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 128, in _compare_spikes
recorded_spikes = sorted([(idx, time) for time in recorded.t[recorded.i==idx] if time >= start_time and time < end_time])
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Basic test for `SpikeGeneratorGroup` with already sorted spike events.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 69, in test_spikegenerator_basic_sorted
_compare_spikes(5, indices, times, s_mon)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 128, in _compare_spikes
recorded_spikes = sorted([(idx, time) for time in recorded.t[recorded.i==idx] if time >= start_time and time < end_time])
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Basic test for `SpikeGeneratorGroup` with already sorted spike events.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 83, in test_spikegenerator_basic_sorted_with_sorted
_compare_spikes(5, indices, times, s_mon)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 128, in _compare_spikes
recorded_spikes = sorted([(idx, time) for time in recorded.t[recorded.i==idx] if time >= start_time and time < end_time])
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Basic test for `SpikeGeneratorGroup`.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 100, in test_spikegenerator_period
recorded_spikes = sorted([(idx, time) for time in s_mon.t[s_mon.i==idx]])
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Basic test for `SpikeGeneratorGroup`.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 122, in test_spikegenerator_period_repeat
assert (idx+1)*len(SG.spike_time) == s_mon.num_spikes
File "D:\programming\brian2\brian2\core\variables.py", line 1238, in __len__
return len(self.get_item(slice(None), level=1))
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1115, in get_with_index_array
indices = self.indexing(item, self.index_var)
File "D:\programming\brian2\brian2\groups\group.py", line 265, in __call__
return index_var.get_value()[index_array]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spikegenerator.test_spikegenerator_rounding
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 226, in test_spikegenerator_rounding
assert_equal(mon.count, np.ones(100))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spikegenerator.test_spikegenerator_rounding_long
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 259, in test_spikegenerator_rounding_long
assert spikes.count[0] == N, 'expected %d spikes, got %d' % (N, spikes.count[0])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_spikegenerator.test_spikegenerator_rounding_period
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_spikegenerator.py", line 279, in test_spikegenerator_rounding_period
assert_equal(spikes.count[0], N*repeats)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_stateupdaters.test_multiple_noise_variables_extended
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 102, in test_multiple_noise_variables_extended
no_noise_x, no_noise_y = mon.x[:], mon.y[:]
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_stateupdaters.test_multiple_noise_variables_deterministic_noise
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 169, in test_multiple_noise_variables_deterministic_noise
no_noise_x, no_noise_y = mon.x[:], mon.y[:]
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_stateupdaters.test_pure_noise_deterministic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 195, in test_pure_noise_deterministic
err_msg='method %s did not give the expected result' % method)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Make sure that the integration of a (non-stochastic) differential equation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 566, in test_subexpressions_basic
assert_equal(mon1.v, mon2.v, 'Results for method %s differed!' % method)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Make sure that the integration of a (non-stochastic) differential equation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 590, in test_subexpressions
assert_equal(mon1.v, mon2.v, 'Results for method %s differed!' % method)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_stateupdaters.test_refractory
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 673, in test_refractory
assert_allclose(G_no_ref.v[:], G_ref.v[:],
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_stateupdaters.test_refractory_stochastic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_stateupdaters.py", line 692, in test_refractory_stochastic
assert_allclose(G_no_ref.v[:], G_ref.v[:],
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test the setting and accessing of state variables in subgroups.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 33, in test_state_variables
np.array([0, 0, 0, 0, -80, -80, -80, -80, -80, 0])*mV)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_state_variables_simple
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 79, in test_state_variables_simple
assert_equal(G.a[:], [0, 0, 0, 2, 1, 1, 1, 0, 0, 0])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test accessing subgroups with string indices.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 91, in test_state_variables_string_indices
assert len(SG.v['i>3']) == 1
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 822, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 512, in variableview_get_with_expression
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables with string expressions in standalone scripts.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_state_monitor
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 138, in test_state_monitor
assert_allclose(mon_0[0].v, mon_all[0].v)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_creation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 167, in test_synapse_creation
assert_equal(S._synaptic_pre[:], np.array([2, 2]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_creation_state_vars
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 202, in test_synapse_creation_state_vars
assert len(S2) == 2 * len(SG2), str(len(S2))
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_creation_generator
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 241, in test_synapse_creation_generator
assert_equal(S._synaptic_pre[:], np.arange(5).repeat(2))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_creation_generator_multiple_synapses
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 305, in test_synapse_creation_generator_multiple_synapses
assert_equal(S1.j[source, :], np.arange(len(SG2)).repeat(source))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_creation_generator_complex_ranges
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 345, in test_synapse_creation_generator_complex_ranges
assert_equal(S._synaptic_post[syn_source, :],
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1115, in get_with_index_array
indices = self.indexing(item, self.index_var)
File "D:\programming\brian2\brian2\synapses\synapses.py", line 531, in __call__
pre_synapses = find_synapses(I, self.synaptic_pre.get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_creation_generator_random
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 375, in test_synapse_creation_generator_random
assert len(S2) == 2 * len(SG2), str(len(S2))
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapse_access
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 391, in test_synapse_access
assert all(S.w['j==0'] == 5)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 822, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 512, in variableview_get_with_expression
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables with string expressions in standalone scripts.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synapses_access_subgroups
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 422, in test_synapses_access_subgroups
S.w[SG1, SG2] = 1
File "D:\programming\brian2\brian2\core\variables.py", line 928, in __setitem__
self.set_item(item, value, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 925, in set_item
check_units=check_units)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 429, in variableview_set_with_index_array
'expressions.') % variableview.name)
NotImplementedError: Cannot set variable "w" this way in standalone, try using string expressions.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_subgroup_summed_variable
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 489, in test_subgroup_summed_variable
assert_array_equal(target.Iin, [10, 5, 10, 1, 1])
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Assure that subexpressions in targeted groups are handled correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 506, in test_subexpression_references
assert_equal(S1.i[:], np.arange(5))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Assure that subexpressions are handled correctly, even
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 539, in test_subexpression_no_references
assert_equal(G[5:].v2, np.arange(5, 10)*2)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synaptic_propagation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 583, in test_synaptic_propagation
assert_equal(np.asarray(G2.v).flatten(), expected)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_synaptic_propagation_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 596, in test_synaptic_propagation_2
assert target.v[0] == 1.0
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_run_regularly
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 619, in test_run_regularly
assert_array_equal(group.v, [24, 24, 20, 20, 18, 18, 17, 17, 16, 16])
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_subgroup.test_spike_monitor
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 635, in test_spike_monitor
assert_equal(s_mon.i, np.array([0, 2, 5]))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Using subgroups without keeping an explicit reference. Monitors
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 683, in test_no_reference_2
assert_equal(state_mon[0].v[:], np.zeros(2))
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Using subgroups without keeping an explicit reference. Monitors
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 700, in test_no_reference_3
assert_equal(G.v[:], np.array([0, 1]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Using subgroups without keeping an explicit reference. Synapses
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 718, in test_no_reference_4
assert_equal(np.asarray(G2.v).flatten(), expected)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Create a subgroup of a subgroup
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_subgroup.py", line 729, in test_recursive_subgroup
assert_equal(SG2.v[:], np.array([5, 6]))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test the count of outgoing/incoming synapses per neuron.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 117, in test_incoming_outgoing
assert all(S.N_outgoing[0, :] == 3)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1115, in get_with_index_array
indices = self.indexing(item, self.index_var)
File "D:\programming\brian2\brian2\synapses\synapses.py", line 531, in __call__
pre_synapses = find_synapses(I, self.synaptic_pre.get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test connecting synapses with explictly given arrays
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 157, in test_connection_arrays
_compare(S1, expected1)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_string_deterministic_full
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 201, in test_connection_string_deterministic_full
_compare(S1, expected_full)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_string_deterministic_full_no_self
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 226, in test_connection_string_deterministic_full_no_self
_compare(S1, expected_no_self)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_string_deterministic_full_one_to_one
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 258, in test_connection_string_deterministic_full_one_to_one
_compare(S1, expected_one_to_one)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_string_deterministic_full_custom
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 288, in test_connection_string_deterministic_full_custom
_compare(S1, expected_custom)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_string_deterministic_multiple_and
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 300, in test_connection_string_deterministic_multiple_and
assert len(synapses) == 25
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_random_with_condition
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 335, in test_connection_random_with_condition
assert len(S1) == 0
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_random_with_condition_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 395, in test_connection_random_with_condition_2
assert not any(S7.i == S7.j)
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test random connections.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 453, in test_connection_random_with_indices
_compare(S1, expected1)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_connection_random_without_condition
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 496, in test_connection_random_without_condition
_compare(S1, np.zeros((len(G), len(G2))))
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Test multiple synapses per connection.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 539, in test_connection_multiple_synapses
assert len(S1) == 0
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Assign values to state variables in various ways
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 567, in test_state_variable_assignment
(S.i[:] * mV, S.i[:]*np.ones(100)*mV),
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_state_variable_indexing
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 616, in test_state_variable_indexing
S.w[:, :, 0] = '5*i + j'
File "D:\programming\brian2\brian2\core\variables.py", line 928, in __setitem__
self.set_item(item, value, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 922, in set_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 993, in set_with_expression
indices = np.atleast_1d(self.indexing(item))
File "D:\programming\brian2\brian2\synapses\synapses.py", line 531, in __call__
pre_synapses = find_synapses(I, self.synaptic_pre.get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_indices
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 668, in test_indices
assert_equal(S.indices[:], np.arange(10*10))
File "D:\programming\brian2\brian2\groups\group.py", line 308, in __getitem__
return self.indices(item)
File "D:\programming\brian2\brian2\synapses\synapses.py", line 512, in __call__
start, stop, step = index.indices(len(self.synaptic_pre.get_value()))
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Assure that subexpressions in targeted groups are handled correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 685, in test_subexpression_references
assert_equal(S.u[:], np.arange(10)[::-1]*2+1)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_constant_variable_subexpression_in_synapses
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 709, in test_constant_variable_subexpression_in_synapses
assert_allclose(S.v3[:], S.v1[:])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Assure that subexpressions in targeted groups are handled correctly.
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 731, in test_nested_subexpression_references
assert_allclose(G2.v[:5], 0.)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_delay_specification
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 754, in test_delay_specification
assert len(S.delay[:]) == len(G)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_delays_pathways
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 797, in test_delays_pathways
assert len(S.pre1.delay[:]) == len(G)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_delays_pathways_subgroups
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 846, in test_delays_pathways_subgroups
assert len(S.pre1.delay[:]) == 5
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_pre_post_simple
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 892, in test_pre_post_simple
assert_allclose(syn_mon.pre_value[0][syn_mon.t < 1*ms], 0)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 319, in __getattr__
return Quantity(self.variables[item].get_value().T,
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_simple
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 908, in test_transmission_simple
assert_allclose(mon[0].v[mon.t<2*ms+offset], 0.)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_custom_event
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 924, in test_transmission_custom_event
assert_allclose(mon[0].v[mon.t<2*ms], 0.)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 965, in test_transmission
assert_allclose(source_mon.t[source_mon.i==d],
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_all_to_one_heterogeneous_delays
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 987, in test_transmission_all_to_one_heterogeneous_delays
assert mon[0].v[0+offset] == 3
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_one_to_all_heterogeneous_delays
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1004, in test_transmission_one_to_all_heterogeneous_delays
assert_allclose(mon[0].v, [0, 1, 1, 2, 2])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_scalar_delay
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1022, in test_transmission_scalar_delay
assert_allclose(mon[0].v[mon.t<0.5*ms+offset-defaultclock.dt/2], 0)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_scalar_delay_different_clocks
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1049, in test_transmission_scalar_delay_different_clocks
assert_allclose(mon[0].v[mon.t<0.5*ms], 0)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_transmission_boolean_variable
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1065, in test_transmission_boolean_variable
assert_allclose(mon[0].v[mon.t<2*ms+offset], 0.)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_changed_dt_spikes_in_queue
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1116, in test_changed_dt_spikes_in_queue
assert_allclose(mon.t[:], expected)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_summed_variable
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1157, in test_summed_variable
assert_allclose(target.v, np.array([1.0, 5.0])*volt)
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_summed_variable_pre_and_post
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1184, in test_summed_variable_pre_and_post
assert_allclose(G1.syn_sum[:], [0, 1, 2, 12])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_summed_variable_differing_group_size
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1215, in test_summed_variable_differing_group_size
assert_allclose(G1.var[0], 5 * 1 + 0 + 1 + 2 + 3 + 4)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_summed_variables_subgroups
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1274, in test_summed_variables_subgroups
assert_allclose(target.v[:6], 2*np.ones(6))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_scalar_parameter_access
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1322, in test_scalar_parameter_access
assert_allclose(S.s[:], 150*Hz)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_scalar_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1356, in test_scalar_subexpression
assert S.sub[:] == 150
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 828, in get_item
run_namespace=namespace)
File "D:\programming\brian2\brian2\core\base.py", line 274, in device_override_decorated_function
return getattr(curdev, name)(*args, **kwds)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 499, in variableview_get_subexpression_with_index_array
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_sim_with_scalar_variable
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1374, in test_sim_with_scalar_variable
assert_allclose(out.v[:], [6, 7])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_sim_with_scalar_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1387, in test_sim_with_scalar_subexpression
assert_allclose(out.v[:], [6, 7])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_sim_with_constant_subexpression
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1400, in test_sim_with_constant_subexpression
assert_allclose(out.v[:], [6, 7])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_external_variables
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1415, in test_external_variables
assert target.v[0] == 2
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_event_driven
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1464, in test_event_driven
assert_allclose(S1.w[:], S2.w[:])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_vectorisation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1796, in test_vectorisation
assert_allclose(source.v[:5], 12)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_vectorisation_STDP_like
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1833, in test_vectorisation_STDP_like
indices = np.argsort(np.array(zip(syn.i[:], syn.j[:]),
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synaptic_equations
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1863, in test_synaptic_equations
assert_allclose(S.w[:], np.arange(10) * np.exp(-1))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapse_with_run_regularly
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1875, in test_synapse_with_run_regularly
assert_allclose(S.w[:], np.arange(10))
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapses_to_synapses
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1892, in test_synapses_to_synapses
assert_array_equal(target.v, [5, 3, 4])
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapses_to_synapses_statevar_access
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1909, in test_synapses_to_synapses_statevar_access
assert_equal(modulator_to_conn.i, np.arange(40))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapses_to_synapses_different_sizes
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1934, in test_synapses_to_synapses_different_sizes
assert_allclose(modulatory_conn.w_post, 2*np.arange(100))
File "D:\programming\brian2\brian2\tests\utils.py", line 30, in assert_allclose
numpy_allclose(np.asarray(actual), np.asarray(desired), rtol=rtol, atol=atol, **kwds)
File "C:\Anaconda\lib\site-packages\numpy\core\numeric.py", line 501, in asarray
return array(a, dtype, copy=False, order=order)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1115, in get_with_index_array
indices = self.indexing(item, self.index_var)
File "D:\programming\brian2\brian2\synapses\synapses.py", line 512, in __call__
start, stop, step = index.indices(len(self.synaptic_pre.get_value()))
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_ufunc_at_vectorisation
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 1987, in test_ufunc_at_vectorisation
val = rand(len(G))
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapses_to_synapses_summed_variable
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2024, in test_synapses_to_synapses_summed_variable
assert_array_equal(conn.w[:], [10, 10, 9, 7, 4])
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapse_generator_deterministic
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2123, in test_synapse_generator_deterministic
_compare(S1, expected_full)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapse_generator_deterministic_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2194, in test_synapse_generator_deterministic_2
_compare(S10, expected_ring)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 27, in _compare
for _i, _j in zip(synapses.i[:], synapses.j[:]):
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapse_generator_random
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2232, in test_synapse_generator_random
assert len(S1) == 0
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapse_generator_random_with_condition
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2279, in test_synapse_generator_random_with_condition
assert len(S1) == 0
File "D:\programming\brian2\brian2\groups\group.py", line 633, in __len__
return int(self.variables['N'].get_value())
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapse_generator_random_with_condition_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2355, in test_synapse_generator_random_with_condition_2
assert not any(S9.i == S9.j)
File "D:\programming\brian2\brian2\core\variables.py", line 1333, in __eq__
return self.get_item(slice(None), level=1) == np.asanyarray(other)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapses_refractory
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2402, in test_synapses_refractory
assert_allclose(target.v[:5], 1)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_synapses.test_synapses_refractory_rand
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_synapses.py", line 2419, in test_synapses_refractory_rand
assert all(target.v[:5] > 0)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_thresholder.test_simple_threshold
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_thresholder.py", line 15, in test_simple_threshold
assert_equal(s_mon.count, np.array([1, 0, 1, 0]))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_thresholder.test_scalar_threshold
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_thresholder.py", line 24, in test_scalar_threshold
assert_equal(s_mon.count, np.array([1, 1, 1, 1]))
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 347, in assert_equal
return assert_array_equal(actual, desired, err_msg, verbose)
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 856, in assert_array_equal
verbose=verbose, header='Arrays are not equal')
File "C:\Anaconda\lib\site-packages\numpy\testing\_private\utils.py", line 690, in assert_array_compare
x = array(x, copy=False, subok=True)
File "D:\programming\brian2\brian2\core\variables.py", line 1207, in __array__
value = self[:]
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_timedarray.test_timedarray_semantics
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 41, in test_timedarray_semantics
assert_allclose(mon[0].value, [0, 0, 0, 0, 1, 1, 1, 1])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_timedarray.test_timedarray_no_units
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 51, in test_timedarray_no_units
assert_allclose(mon[0].value_, np.clip(np.arange(len(mon[0].t)), 0, 9) + 1)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 46, in __getattr__
return mon.variables[item[:-1]].get_value().T[self.indices].copy()
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_timedarray.test_timedarray_with_units
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 60, in test_timedarray_with_units
assert_allclose(mon[0].value, np.clip(np.arange(len(mon[0].t)), 0, 9)*amp + 2*nA)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_timedarray.test_timedarray_2d
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 70, in test_timedarray_2d
assert_allclose(mon[0].value_, np.array([0, 3, 6, 9, 9]) + 1)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 46, in __getattr__
return mon.variables[item[:-1]].get_value().T[self.indices].copy()
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_timedarray.test_timedarray_no_upsampling
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 97, in test_timedarray_no_upsampling
assert_allclose(mon[0].value, [0, 9, 9])
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: Use a very long timedarray (with a big dt), where the upsampling can lead
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 115, in test_long_timedarray
assert_allclose(mon[0].value[mon.t < 16384*second], 16383)
File "D:\programming\brian2\brian2\monitors\statemonitor.py", line 43, in __getattr__
return Quantity(mon.variables[item].get_value().T[self.indices],
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
======================================================================
NOT_IMPLEMENTED: brian2.tests.test_timedarray.test_timedarray_repeated_use
----------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
File "D:\programming\brian2\brian2\tests\test_timedarray.py", line 127, in test_timedarray_repeated_use
assert G.x[0] == 6 * (run_idx + 1)
File "D:\programming\brian2\brian2\core\variables.py", line 838, in __getitem__
return self.get_item(item, level=1)
File "D:\programming\brian2\brian2\core\variables.py", line 830, in get_item
values = self.get_with_index_array(item)
File "D:\programming\brian2\brian2\core\base.py", line 276, in device_override_decorated_function
return func(*args, **kwds)
File "D:\programming\brian2\brian2\core\variables.py", line 1117, in get_with_index_array
return variable.get_value()[indices]
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
----------------------------------------------------------------------
Ran 239 tests in 144.678s
FAILED (NOT_IMPLEMENTED=190, SKIP=13, errors=1, failures=1)
Running tests for target weave:
brian2.tests.test_GSL.test_GSL_default_function ... WARNING Integrating equations with GSL is still considered experimental [brian2.stateupdaters.GSL]
SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_different_clocks ... ok
brian2.tests.test_GSL.test_GSL_error_bounds ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless1 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_dimensionless2 ... ok
brian2.tests.test_GSL.test_GSL_error_dimension_mismatch_unit ... ok
brian2.tests.test_GSL.test_GSL_error_incorrect_error_format ... ok
brian2.tests.test_GSL.test_GSL_error_nonODE_variable ... ok
brian2.tests.test_GSL.test_GSL_error_nonexisting_variable ... ok
brian2.tests.test_GSL.test_GSL_fixed_timestep_big_dt_small_error ... FAIL
brian2.tests.test_GSL.test_GSL_method_options_neurongroup ... ok
brian2.tests.test_GSL.test_GSL_method_options_spatialneuron ... ok
brian2.tests.test_GSL.test_GSL_method_options_synapses ... ok
brian2.tests.test_GSL.test_GSL_non_autonomous ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_refractory ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_save_step_count ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_stateupdater_basic ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_user_defined_function ... SKIP: GSL support for numpy has not been implemented yet
brian2.tests.test_GSL.test_GSL_x_variable ... ok
brian2.tests.test_base.test_active_flag ... ok
brian2.tests.test_codegen.test_clear_cache_numpy ... SKIP: numpy-only test
brian2.tests.test_codegen.test_clear_cache_weave ... ok
brian2.tests.test_codegen.test_clear_cache_cython ... SKIP: Cython-only test
brian2.tests.test_complex_examples.test_cuba ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Make sure that symbolic constants use the correct values in code ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test that math functions give the same result, regardless of whether used ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_clip ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_bool_to_int ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_timestep_function_during_run ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_user_defined_function ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Test the preparation of functions for use in code with check_units. ... SKIP: numpy-only test
brian2.tests.test_functions.test_simple_user_defined_function ... NOT_IMPLEMENTED: Original error and traceback:
Traceback (most recent call last):
File "D:\programming\brian2\brian2\core\network.py", line 841, in before_run
obj.before_run(run_namespace)
File "D:\programming\brian2\brian2\groups\group.py", line 1115, in before_run
codeobj_class=self.codeobj_class
File "D:\programming\brian2\brian2\codegen\codeobject.py", line 310, in create_runner_codeobj
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 552, in code_object
override_conditional_write=override_conditional_write,
File "D:\programming\brian2\brian2\devices\device.py", line 335, in code_object
name=name)
File "D:\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 167, in __init__
self.variables_to_namespace()
File "D:\programming\brian2\brian2\codegen\runtime\numpy_rt\numpy_rt.py", line 190, in variables_to_namespace
value = var.get_value()
File "D:\programming\brian2\brian2\core\variables.py", line 462, in get_value
return self.device.get_value(self)
File "D:\programming\brian2\brian2\devices\cpp_standalone\device.py", line 491, in get_value
raise NotImplementedError('Cannot retrieve the values of state '
NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
Error encountered with object named "statemonitor_1".
Object was created here (most recent call only, full details in debug log):
File "C:\Anaconda\lib\site-packages\nose\case.py", line 197, in runTest
self.test(*self.arg)
An error occurred when preparing an object. NotImplementedError: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
(See above for original error message and traceback.)
brian2.tests.test_functions.test_manual_user_defined_function ... SKIP: numpy-only test
brian2.tests.test_functions.test_manual_user_defined_function_weave ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_function_dependencies_weave ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_function_dependencies_cython ... SKIP: cython-only test
brian2.tests.test_functions.test_function_dependencies_numpy ... SKIP: numpy-only test
brian2.tests.test_functions.test_binomial ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_functions.test_declare_types ... SKIP: numpy-only test
brian2.tests.test_functions.test_multiple_stateless_function_calls ... ok
brian2.tests.test_monitor.test_spike_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_indexing ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables with string expressions in standalone scripts.
brian2.tests.test_monitor.test_spike_monitor_variables ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_subgroups ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_monitor_bug_824 ... SKIP: numpy-only test
brian2.tests.test_monitor.test_event_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_event_monitor_no_record ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_spike_trains ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_synapses_state_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor_record_single_timestep ... ok
brian2.tests.test_monitor.test_state_monitor_indexing ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_state_monitor_resize ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_1 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_get_states ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_subgroups ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_monitor.test_rate_monitor_subgroups_2 ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_morphology.test_tree_cables_from_swc ... ok
Somewhat realistic test with a loop of magic networks ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_multiple_runs_report_standalone ... Starting simulation at t=0.001 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
ok
brian2.tests.test_network.test_multiple_runs_report_standalone_2 ... Starting simulation at t=0.001 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
ok
brian2.tests.test_network.test_multiple_runs_report_standalone_3 ... Starting simulation at t=0 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
Starting simulation at t=0.001 s for duration 0.001 s
0.001 s (100%) simulated in 0 s
ok
brian2.tests.test_network.test_dt_changes_between_runs ... ok
brian2.tests.test_network.test_profile ... ERROR
brian2.tests.test_network.test_profile_off ... ok
brian2.tests.test_network.test_runtime_rounding ... NOT_IMPLEMENTED: Cannot retrieve the values of state variables in standalone code before the simulation has been run.
brian2.tests.test_network.test_multiple_runs_constant_change ...
Process finished with exit code 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment