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
This is probably a stupid question, but as someone who was previously leveraging the Aston package but needs to update to this because the Aston package requirement for an older, unsupported Python version....
How do I access the readers in entab? I don't see any section in the README to help illustrate how someone might migrate from Aston to this new package. I used to have code like:
`def test_aston_import():
from aston.tracefile.agilent_uv import AgilentMWD2
The instance you get is going to be simpler/lower-level from what Aston returns and lacks some of the convenience methods so if you want e.g. an extracted trace you're going to have to compute it manually:
instance = Reader(filename='dad1A.ch')
assert instance.parser == 'chemstation_dad'
eic = {}
for scan in instance:
if scan.wavelength == 250:
eic[scan.time] = scan.intensity
Another issue might be that entab is still missing some parsers from Aston including a couple of the ones for files with magic 0331 like AgilentMWD2 (see #42 for another one). I don't know if you can still run Aston in a docker image or something with old Python for now, but that might be the best option?
This is probably a stupid question, but as someone who was previously leveraging the Aston package but needs to update to this because the Aston package requirement for an older, unsupported Python version....
How do I access the readers in entab? I don't see any section in the README to help illustrate how someone might migrate from Aston to this new package. I used to have code like:
`def test_aston_import():
from aston.tracefile.agilent_uv import AgilentMWD2
but one cannot simply replace the "aston" with "entab". Any insight would be welcome. Thank you!
The text was updated successfully, but these errors were encountered: