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

New pint.print_info() function, Update CONTRIBUTING.rst #1601

Merged
merged 23 commits into from
Aug 3, 2023

Conversation

abhisrkckl
Copy link
Contributor

@abhisrkckl abhisrkckl commented Jul 6, 2023

  1. Report bugs: use pint.print_info()
  2. Get Started!: Use conda OR virtualenv for dev install
  3. fixed links

@codecov
Copy link

codecov bot commented Jul 6, 2023

Codecov Report

Patch coverage: 79.16% and no project coverage change.

Comparison is base (90de794) 68.14% compared to head (d0ced23) 68.15%.
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1601   +/-   ##
=======================================
  Coverage   68.14%   68.15%           
=======================================
  Files          98       98           
  Lines       22638    22660   +22     
  Branches     3889     3893    +4     
=======================================
+ Hits        15427    15444   +17     
- Misses       6259     6262    +3     
- Partials      952      954    +2     
Files Changed Coverage Δ
src/pint/__init__.py 94.73% <66.66%> (-2.41%) ⬇️
src/pint/utils.py 59.56% <80.95%> (+0.51%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@abhisrkckl
Copy link
Contributor Author

abhisrkckl commented Jul 7, 2023

I have added a new pint.print_info() function for bug reporting. Its output looks like the following. Please comment below if you think any other information will be useful.

Created: 2023-07-07T12:02:20.799573
PINT_version: 0.9.6+23.gbbd3a510
User: Abhimanyu Susobhanan (abhimanyu)
Host: abhimanyu-VirtualBox
OS: Linux-5.19.0-46-generic-x86_64-with-glibc2.35
Python: 3.10.12 (main, Jul 5 2023, 18:54:27) [GCC 11.2.0]
endian: little
numpy_version: 1.25.0
numpy_longdouble_precision: float128
scipy_version: 1.11.1
astropy_version: 5.3
pyerfa_version: 2.0.0.3
jplephem_version: 2.18
matplotlib_version: 3.7.2
loguru_version: 0.7.0

@paulray
Copy link
Member

paulray commented Jul 7, 2023

One of the first things I often have to ask for is pint.__file__ so maybe add that?
Also is there any way to tell if you are in a virtualenv or a conda environment?

@abhisrkckl
Copy link
Contributor Author

abhisrkckl commented Jul 13, 2023

I have included this information in the info string.

import pint
pint.print_info()
Created: 2023-07-13T10:08:36.108629
PINT_version: 0.9.6+27.gc0d356f8.dirty
User: Abhimanyu Susobhanan (abhimanyu)
Host: abhimanyu-VirtualBox
OS: Linux-5.19.0-46-generic-x86_64-with-glibc2.35
Python: 3.10.12 (main, Jul 5 2023, 18:54:27) [GCC 11.2.0]
endian: little
numpy_version: 1.25.0
numpy_longdouble_precision: float128
scipy_version: 1.11.1
astropy_version: 5.3
pyerfa_version: 2.0.0.3
jplephem_version: 2.18
matplotlib_version: 3.7.2
loguru_version: 0.7.0
Python_prefix: /home/abhimanyu/miniconda3/envs/pint-devel
PINT_file: /home/abhimanyu/Work/PINT/src/pint/init.py
Environment: conda
conda_prefix: /home/abhimanyu/miniconda3/envs/pint-devel

@abhisrkckl abhisrkckl changed the title Update CONTRIBUTING.rst New pint.print_info() function, Update CONTRIBUTING.rst Jul 13, 2023
@paulray paulray merged commit 447cc06 into nanograv:master Aug 3, 2023
8 checks passed
@abhisrkckl abhisrkckl deleted the docs-contr branch August 18, 2023 14:29
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

Successfully merging this pull request may close these issues.

2 participants