With Progress=True:
[root@neoexchange-7b466c7b4c-p42x8 neoexchange]# python3 manage.py download_archive_data --datadir ${dataroot} --spectraonly --date 20200715 --proposal LCO2020B-006 INFO:core.archive_subs:Writing file to /data/eng/rocks/20200715/LCO2020B-006_2181838_ftn_20200716_59047.tar.gz Downloaded 12 frames Traceback (most recent call last): File "manage.py", line 42, in <module> execute_from_command_line(sys.argv) File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/var/www/apps/neoexchange/core/management/commands/download_archive_data.py", line 115, in handle movie_file = make_movie(frame['DATE_OBS'], obj, req_num, tar_path, out_path, frame['PROPID']) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 401, in make_movie movie_file = make_gif(frames, out_path=out_path, progress=True) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 328, in make_gif ax1 = update(0) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 325, in update print_progress_bar(n+1, len(fits_files), prefix='Creating Gif: Frame {}'.format(current_count), time_in=time_in) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 79, in print_progress_bar print('\r%s |%s| %s%%%s%s' % (prefix, bar, percent, time_left, suffix), end='\r') UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 24: ordinal not in range(128)
With progress=False:
/opt/lcogt-python36/lib/python3.6/site-packages/astropy/visualization/wcsaxes/core.py:458: MatplotlibDeprecationWarning: The 'inframe' parameter of draw() was deprecated in Matplotlib 3.3 and will be removed two minor releases later. Use Axes.redraw_in_frame() instead. If any parameter follows 'inframe', they should be passed as keyword, not positionally. super().draw(renderer, inframe=inframe)
The depreciation warning is coming from Astropy; it's still there in 3.2.3 but gone in 4.0 but the latter may be a step too far; we may need to pin the matplotlib version to <3.3 instead
With
Progress=True
:[root@neoexchange-7b466c7b4c-p42x8 neoexchange]# python3 manage.py download_archive_data --datadir ${dataroot} --spectraonly --date 20200715 --proposal LCO2020B-006 INFO:core.archive_subs:Writing file to /data/eng/rocks/20200715/LCO2020B-006_2181838_ftn_20200716_59047.tar.gz Downloaded 12 frames Traceback (most recent call last): File "manage.py", line 42, in <module> execute_from_command_line(sys.argv) File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/__init__.py", line 364, in execute_from_command_line utility.execute() File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/__init__.py", line 356, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/base.py", line 283, in run_from_argv self.execute(*args, **cmd_options) File "/opt/lcogt-python36/lib/python3.6/site-packages/django/core/management/base.py", line 330, in execute output = self.handle(*args, **options) File "/var/www/apps/neoexchange/core/management/commands/download_archive_data.py", line 115, in handle movie_file = make_movie(frame['DATE_OBS'], obj, req_num, tar_path, out_path, frame['PROPID']) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 401, in make_movie movie_file = make_gif(frames, out_path=out_path, progress=True) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 328, in make_gif ax1 = update(0) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 325, in update print_progress_bar(n+1, len(fits_files), prefix='Creating Gif: Frame {}'.format(current_count), time_in=time_in) File "/var/www/apps/neoexchange/photometrics/gf_movie.py", line 79, in print_progress_bar print('\r%s |%s| %s%%%s%s' % (prefix, bar, percent, time_left, suffix), end='\r') UnicodeEncodeError: 'ascii' codec can't encode character '\u2588' in position 24: ordinal not in range(128)
With
progress=False
:/opt/lcogt-python36/lib/python3.6/site-packages/astropy/visualization/wcsaxes/core.py:458: MatplotlibDeprecationWarning: The 'inframe' parameter of draw() was deprecated in Matplotlib 3.3 and will be removed two minor releases later. Use Axes.redraw_in_frame() instead. If any parameter follows 'inframe', they should be passed as keyword, not positionally. super().draw(renderer, inframe=inframe)