Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init mounted user server at location other than root #3

Closed
bikasbhattarai opened this issue Oct 26, 2018 · 2 comments
Closed

Init mounted user server at location other than root #3

bikasbhattarai opened this issue Oct 26, 2018 · 2 comments

Comments

@bikasbhattarai
Copy link

bikasbhattarai commented Oct 26, 2018

Read data/paths_user_server.ini file misses some obs network specifications

pya.const.BASEDIR = '/home/bikascb/aerocom/aerocom-users-database/'
pya.const.read_config(config, keep_basedirs=True)

KeyError Traceback (most recent call last)
in
1 pya.const.BASEDIR = '/home/bikascb/aerocom/aerocom-users-database/'
----> 2 pya.const.read_config(config, keep_basedirs=True)

~/anaconda3/envs/NEGI-Andoya-workshop/lib/python3.6/site-packages/pyaerocom/config.py in read_config(self, config_file, keep_basedirs)
448 self.AERONET_SUN_V3L2_SDA_ALL_POINTS_NAME = cr['obsnames']['AERONET_SUN_V3L2_SDA_ALL_POINTS']
449 # inversions
--> 450 self.AERONET_INV_V3L15_DAILY_NAME = cr['obsnames']['AERONET_INV_V3L15_DAILY']
451 self.AERONET_INV_V3L2_DAILY_NAME = cr['obsnames']['AERONET_INV_V3L2_DAILY']
452

~/anaconda3/envs/NEGI-Andoya-workshop/lib/python3.6/configparser.py in getitem(self, key)
1231 def getitem(self, key):
1232 if not self._parser.has_option(self._name, key):
-> 1233 raise KeyError(key)
1234 return self._parser.get(self._name, key)
1235

KeyError: 'AERONET_INV_V3L15_DAILY'

@jgliss
Copy link
Contributor

jgliss commented Nov 21, 2018

This issue should be resolved in the latest updates (use branch andoya_course). Final tests will be run soon before merge back into master and issue will be closed if tests okay after the merge.

@bikasbhattarai Please report back if problem still occurs. Thank you.

@jgliss
Copy link
Contributor

jgliss commented Nov 23, 2018

Closing issue after merging with master and running all tests (just before release of v0.7.0)

PLEASE NOTE: we made a new notebook that shows how to setup pyaerocom when working on the AeroCom users database.

@jgliss jgliss closed this as completed Nov 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants