Commit c1e9d41c authored by Carlo Ferrigno's avatar Carlo Ferrigno
Browse files

v1.3.12

Add author email.
add author and email to git folder to push
parent fdb17d22
......@@ -7,8 +7,7 @@ import pkgutil
import os
__author__ = "Carlo Ferrigno"
__author_email__ = "carlo.ferrigno@unige.ch"
pkg_dir = os.path.abspath(os.path.dirname(__file__))
pkg_name = os.path.basename(pkg_dir)
......
......@@ -187,9 +187,12 @@ def get_osa10_11_conversion_factor(E1_isgri_keV, E2_isgri_keV, radius=10., oda_p
factor = np.mean(r_10)/np.mean(r_11)
get_osa10_11_conversion_factor._log.info("Conversion factor is %f" % factor)
conversion_dict.update({'%.0f-%.0f' % (E1_isgri_keV, E2_isgri_keV): float(factor)})
import oda_integral_wrapper
with open('integral-osa-additional-parameters/osa11-10-conversion.json', 'w') as ff:
json.dump(conversion_dict, ff)
subprocess.call('cd integral-osa-additional-parameters;'+
'git config user.email "%s";'%(oda_integral_wrapper.__author_email__) +
'git config --global user.name "%s";' %(oda_integral_wrapper.__author__) +
'git commit osa11-10-conversion.json -m "Update factor %.0f-%.0f";'%(E1_isgri_keV, E2_isgri_keV)+
'git push ', shell=True)
......
......@@ -19,7 +19,7 @@ include_package_data=True
scripts_list = glob.glob('./bin/*')
setup(name='oda_integral_wrapper',
version="1.3.11",
version="1.3.12",
description='wrapper for INTEGRAL analysis using the API plugin for CDCI online data analysis',
author='Carlo Ferrigno',
author_email='carlo.ferrigno@unige.ch',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment