Coder Social home page Coder Social logo

Test Ubermag failures about workshop HOT 7 CLOSED

ubermag avatar ubermag commented on September 26, 2024
Test Ubermag failures

from workshop.

Comments (7)

catrevil avatar catrevil commented on September 26, 2024

For this ubermag environment, did you make sure to set python to 3.8 when you created it? After this, I would not try to do updates specifically to the ubermag environment install of python, and instead let conda work its dependencies magic when you tell it to conda update ubermag. This may be related to your tcl issues. I have 2.0a2 installed which usurps the 2.0a1 installed by ubermag, and this works with no issues

When did you conda update ubermag last? I ask this because in the most recent release, the need to install Docker was a result of the fixes implemented by Marijan to overcome the limitations of the Windows OS, and allow for more expansive boundary condition definitions which they had written some time ago (but which do not run in Windows). You’ll have to follow the Docker installation directions on their website for that part.

from workshop.

marijanbeg avatar marijanbeg commented on September 26, 2024

Hi @p-brane, I am sorry you still have problems installing Ubermag.

If you already have Python and OOMMF on you machine, you can install Ubermag and set-up Ubermag by following our "advanced installation" instructions: https://ubermag.readthedocs.io/en/latest/ipynb/advanced-installation.html. You can skip step 1 (since you already have Pyhton) and install Ubermag with pip. Then you can set the environment path to oommf.tcl.

It is strange conda installation does not cope well with previous installations of Python on your machine, because this is one of its main purposes - create nicely isolated environments to avoid any possible conflicts. But that's software and Windows :/

from workshop.

marijanbeg avatar marijanbeg commented on September 26, 2024

Hi @p-brane, any updates on this issue?

from workshop.

p-brane avatar p-brane commented on September 26, 2024

Hi @marijanbeg
I added the environmental variable OOMMFTCL variable and that help a lot. I only have two failures now! Would you provide some guidance on how to fix them?

=========================== short test summary info ===========================
FAILED tests/test_micromagnetictests.py::test_info_file - AssertionError
FAILED tests/test_micromagnetictests.py::test_multiple_drives - AssertionError
= 2 failed, 296 passed, 1 skipped, 5 deselected, 34 warnings in 895.20s (0:14:55)

Part of the first error message from init.py is shown below.

        assert info['drive_number'] == 1
        assert re.findall(r'\d{4}-\d{2}-\d{2}', info['date']) is not []
        assert re.findall(r'\d{2}:\d{2}-\d{2}', info['time']) is not []
>       assert info['driver'] == 'MinDriver'
E       AssertionError

..\..\..\.conda\envs\ubermag\Lib\site-packages\micromagnetictests\calculatortests\info_file.py:75: AssertionError

The second error message is

>       assert len(os.listdir(name)) == 5
E       AssertionError

..\..\..\.conda\envs\ubermag\Lib\site-packages\micromagnetictests\calculatortests\multiple_drives.py:54: AssertionError
---------------------------- Captured stdout call -----------------------------
Running OOMMF (TclOOMMFRunner) [2020/07/09 01:02]... Start: "C:/Users/<user directory>/ubermag/test-ubermag/multiple_drives/drive-10/multiple_drives.mif"

Options: -exitondone 1 -threads 4

Boxsi version 2.0a2

from workshop.

marijanbeg avatar marijanbeg commented on September 26, 2024

Hi @p-brane, great, thank you for letting us know. Are you running tests in a clean directory?

from workshop.

p-brane avatar p-brane commented on September 26, 2024

Hi @marijanbeg
I deleted all the files and directors from past tests in my test directly and that fixed it. It ran 298 tests with no errors!!!
==== 298 passed, 1 skipped, 5 deselected, 34 warnings in 905.62s (0:15:05) ====
The Jupyter notobook runs so I'll start up the second session video this afternoon. Thank you all the help.

from workshop.

marijanbeg avatar marijanbeg commented on September 26, 2024

Amazing. Thank you for letting us know.

I am going to close this issue now, but as always, if you need any other support, please let us know :)

from workshop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.