You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An inelegant error is raised (i.e., I get about 50 lines of error messages that I need to sift through) if I attempt to get benchmark data from a sphere type that doesn't have benchmark data. A feature request is to provide a "nicer" error message that no benchmark data are available for that sphere type.
The text was updated successfully, but these errors were encountered:
Can you give some example code and the resulting error messages? I tried what I think you mean and only get about 20 lines of errors, so perhaps not the same stuff as you saw?
I can't recreate the error message now as I've rewritten the code and mapped reference model names with the benchmark data column names in a dictionary and do a check for the data. If I run into this again I'll let you know. It may not have been 50, but it was more than 20. You can close this until I can recreate it.
I am running into another issue with the version, but I'm trying to figure out if it is on my end. I wasn't able to run the "theoretical_Sa" function because it couldn't be found. I used your version (importlib) trick and found that I am using 0.1.8, even though I've just reinstalled echosms this afternoon and it seems that 0.5.? was installed via pipx. I'll get back to you on that one if I need to with a new issue.
from echosms import BenchmarkData
bm = BenchmarkData()
bm.freq_dataset['abcd']
and got 20 odd lines of stack trace and error. freq_dataset is a Pandas dataframe, so everything is coming from Pandas code, not echoSMs. However, I see now that that is not necessarily clear and it might be better to return the requested benchmark data (and then echoSMs can generate simpler errors) and also have an as_dataframe() method for when one wants all the benchmark datasets.
An inelegant error is raised (i.e., I get about 50 lines of error messages that I need to sift through) if I attempt to get benchmark data from a sphere type that doesn't have benchmark data. A feature request is to provide a "nicer" error message that no benchmark data are available for that sphere type.
The text was updated successfully, but these errors were encountered: