Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions rmgpy/pdep/sls.py
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a reminder that testing coverage is big fat 0% for this file.
https://app.codecov.io/gh/ReactionMechanismGenerator/RMG-Py/tree/main/rmgpy%2Fpdep

Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@
"""

import logging
import sys
import os

import numpy as np
import scipy.linalg
import scipy.optimize as opt
import scipy.sparse as sparse

import rmgpy
import rmgpy.constants as constants
from rmgpy.pdep.me import generate_full_me_matrix, states_to_configurations
from rmgpy.rmg.reactionmechanismsimulator_reactors import to_julia
Expand All @@ -62,10 +62,11 @@ def __getattr__(self, name):
Main.seval("using ReactionMechanismSimulator.SciMLBase")
Main.seval("using ReactionMechanismSimulator.Sundials")
except Exception as e:
logging.error("Failed to import Julia and load ReactionmechanismSimulator components needed.")
logging.error("Failed to import Julia and load ReactionMechanismSimulator components needed.")
raise
globals()['Main'] = JuliaMain # Replace proxy with real thing, for next time it's called
return getattr(JuliaMain, name) # Return the attribute for the first time it's called

Main = MainProxy()


Expand Down
Loading