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

Merge two years of devel into master to create v0.6.0 #26

Merged
merged 300 commits into from
Jun 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
a2987b3
add __eq__ method for teh CrystallinePhase class
heprom Apr 19, 2022
187b02e
updated merge_microstructure method to merge all arrays in CellData
heprom Apr 21, 2022
fcd5a7e
new method to segment micro-textured regions
heprom May 17, 2022
8f2d925
added parameter to manually enter the phase list in metho from_ebsd
heprom May 31, 2022
92c9863
added new dependency for graphs with networkx
heprom May 31, 2022
b68e88d
new method update_phase_map and ne parameter roi in from_dct
heprom Jun 2, 2022
e58340d
changed print statements to print updates
heprom Jun 3, 2022
a892942
new method to resample an image group
heprom Jun 9, 2022
75d8233
updates in build_list method
heprom Jun 9, 2022
5f9b31d
start a vast update of the Sample class for ForwardSimulation
heprom Jun 9, 2022
4c50d80
new parameter grain_map_key in from_labdct
heprom Jun 9, 2022
8629029
fix the tests after last update
heprom Jun 9, 2022
36b7ead
account for changes with the Sample class in serialization
heprom Jun 9, 2022
68bc292
improve Sample creation when loading an experiment
heprom Jun 10, 2022
51efdb0
allow to give a name to a microstructure imported from labdct
heprom Jun 13, 2022
81be1f0
fix an issue in the update_phase_map method
heprom Jun 15, 2022
bfdec16
fix the ipf color for other symmetries than cubic
heprom Jun 16, 2022
9cf1765
new parameter update_microstructure_properties in method dilate_grains
heprom Jun 16, 2022
2985dc1
cosmetic changes
heprom Jun 16, 2022
05536f5
new method project_along_directions
heprom Jun 23, 2022
ebffb12
removed redundant attribute name from class Sample
heprom Jun 23, 2022
e0e55e3
add a line return in create_IPF_map
heprom Jun 23, 2022
b311260
new vectorized code for fsim_grain
heprom Jun 23, 2022
ba21064
add extinction condition for HCP
heprom Jun 24, 2022
9ff717c
new method to select hkl planes giving rise to diffraction on the det…
heprom Jun 24, 2022
cbfe125
try block when removing node in xdmf
heprom Aug 2, 2022
1e719e1
make resample_image_group work with increased resolution
heprom Aug 2, 2022
2b128ff
add TODO and remove print statement
heprom Aug 4, 2022
4ef6e03
fix constructor
heprom Aug 4, 2022
199a556
New Xrd3dForwardSimulation forward simulation model
heprom Aug 4, 2022
80f7d35
improve coding standards
heprom Aug 4, 2022
a97126d
change method to set_sample_name
heprom Aug 4, 2022
b413bff
improve coding style and docstrings
heprom Aug 4, 2022
7c58151
crop method now properly sets the origin
heprom Aug 5, 2022
25a147f
naming and coding style improvements
heprom Aug 5, 2022
4dc868c
test files updates
heprom Aug 5, 2022
766c9ca
improved coding style
heprom Aug 8, 2022
a8aecb2
docstring fixes
heprom Aug 8, 2022
a06b4c7
initial commit toward code factorisation to handle microstructural fe…
heprom Aug 8, 2022
8fa75d1
renaming and refactoring the initial code
heprom Aug 9, 2022
ffec647
update view_slice method to use any orthogonal plane
heprom Aug 11, 2022
33da406
fix the viewing conditions for the slip traces
heprom Aug 11, 2022
d40cd6c
fix origin in crop method
heprom Aug 16, 2022
5b0c72d
docstring changes
heprom Aug 16, 2022
cdaad9b
more code formating
heprom Aug 16, 2022
302c28e
speed up move_rotation_to_FZ
heprom Aug 16, 2022
3087e90
auto pick the location to store the field in compute_god
heprom Aug 16, 2022
9ced7fe
add verbose flag in edf_write
heprom Sep 5, 2022
0a7e437
change how is_same_family handle symmetry
heprom Sep 8, 2022
b391610
new version of tt_stack with h5 data files
heprom Sep 9, 2022
acc5f15
new version of tt_stack with h5 data files
heprom Sep 9, 2022
34c6acb
Merge branch 'devel' of https://github.com/heprom/pymicro into devel
heprom Sep 9, 2022
1e09280
add dark image argument
heprom Sep 10, 2022
b80963b
tidy methods around get_family in HklPlane class
heprom Sep 13, 2022
19fe188
updated test files
heprom Sep 13, 2022
cf78ac9
updated tests to reflect changes in lattice module
heprom Sep 13, 2022
b28a4df
update multiplicity method for recent changes
heprom Sep 13, 2022
4c7cd76
file to test 3DXRD methods
heprom Sep 13, 2022
b95950e
updated test for changes in lattice module
heprom Sep 13, 2022
32f6ae1
new Axis2Quaternion method, docstring and code cleanups
heprom Sep 13, 2022
3989473
fix a bug at existing SampleData files initialization, code cleanup
heprom Sep 13, 2022
2e3425f
quick fix after last commit
heprom Sep 14, 2022
8d2c386
added test for from_families method
heprom Sep 14, 2022
4693177
fix the call to get_family
heprom Sep 21, 2022
665a456
new way of computing mean orientation
heprom Sep 21, 2022
2be00d8
new file to handle rotation conversions
heprom Sep 22, 2022
436b430
use quaternions to perform clustering when computing mean orientation
heprom Sep 22, 2022
5fcb532
docstring change
heprom Sep 22, 2022
f56a88a
new method for addition and substraction of quaternions
heprom Sep 22, 2022
66ecb94
update parameter for get_family call
heprom Sep 22, 2022
d0804f4
new method to compute the graph of a microstructure
heprom Oct 4, 2022
173e9ff
small changes in print statements
heprom Oct 4, 2022
3d1ff71
new test for the graph method
heprom Oct 4, 2022
7788e28
use quaternions to perform clustering when computing mean adapt load_…
heprom Oct 5, 2022
1070b4c
code style cleaning
heprom Oct 6, 2022
b0c50c0
new lattice_parameters_number method and code style cleaning
heprom Oct 6, 2022
8bf56ec
code style cleaning
heprom Oct 6, 2022
9e05b84
new method plot_grain_orientation_change_ipf
heprom Oct 10, 2022
94eee5d
updated read_ang for new version of OIM
heprom Oct 11, 2022
138117e
updated read_ang for new version of OIM
heprom Oct 11, 2022
b715722
slightly improved ang reader
heprom Oct 11, 2022
863d0dc
more conversion methods
heprom Oct 12, 2022
9ee4c4a
Merge branch 'devel' of https://github.com/heprom/pymicro into devel
heprom Oct 12, 2022
ccf4d3e
added scikit-learn dependency
heprom Oct 28, 2022
4d232a6
fix bug in double for loop
heprom Oct 28, 2022
075e488
new crop method
heprom Nov 7, 2022
78b0d54
changed energy limit
heprom Nov 7, 2022
51ab6eb
corrected typos
heprom Nov 7, 2022
2d26bc8
introduced new om2ro function
heprom Nov 8, 2022
60f4826
new test for compute_mean_orientation
heprom Nov 8, 2022
fb46389
fixed 3D scatter plot
heprom Nov 8, 2022
25fa970
new data files for Ta and Zr
heprom Nov 15, 2022
707513d
fix recurrent warnings when computing disorientation
heprom Nov 15, 2022
40ccd88
added Tantalum element
heprom Nov 15, 2022
73e161e
fix tt_stack_h5
heprom Nov 17, 2022
6054dbb
new parameter for the number of angles in tt_stack_h5
heprom Nov 17, 2022
313a361
improved to_amitex_fftp method with additional files
heprom Nov 17, 2022
9094862
quick fix to avoid UnboundLocalError
heprom Nov 17, 2022
137a66a
improved from_labdct method
heprom Nov 18, 2022
eecc3e6
fix call to get_hkl_family
heprom Nov 21, 2022
65a10dc
fix problem in from_dct when trying to load non existing local orient…
heprom Nov 21, 2022
6896067
improved Schmid factor calculation
heprom Dec 2, 2022
1fa832d
new option to use mm unit in the view_slice method
heprom Jan 9, 2023
4c8707a
add an option to draw the grain boundaries in view_slice
heprom Jan 9, 2023
39112e4
added support for tetragonal lattice for plotting IPF in sst mode
heprom Jan 11, 2023
1f8fdff
added support for orthorhombic symmetry when plotting IPF in sst mode
heprom Jan 11, 2023
8277693
extend ipf colors for tetragonal and orthorhombic symmetries
heprom Jan 11, 2023
e626c9f
- Added function to write vtk legacy in SDAmitexUtils
AldoMarano Jan 16, 2023
9f9d11f
fix positions not being the right shape in case of point geometry
heprom Jan 17, 2023
9b8beda
fix LaueForwardSimulation constructor
heprom Jan 17, 2023
a868e44
use plurals only if adding more than 1 grain to the microstructure
heprom Jan 17, 2023
b91ffc7
fix problem with mean orientation in from_labdct
heprom Feb 8, 2023
aa3834c
new method from_OIM_h5
heprom Feb 8, 2023
2dfde07
use 4 indices string representation for hexagonal symmetry
heprom Feb 8, 2023
8c8c4b1
new method compute_mean_rodrigues
heprom Feb 8, 2023
d5cc90e
removed usages of deprecated np.float
heprom Feb 8, 2023
b05e27f
new method ubi_to_rod
heprom Feb 20, 2023
e546eca
avoid np.int
heprom Feb 22, 2023
bb7b30d
fix unit problem in ubi_to_rod
heprom Feb 22, 2023
29b4ada
use default energy levels
heprom Mar 9, 2023
1fa7041
allow negative overlap values to merge microstructures
heprom Mar 23, 2023
0949da1
fix missing ref to class for static method
heprom May 11, 2023
daa18aa
added new tests for ObjectGeometry and ForwardSimulation classes
heprom May 11, 2023
1268862
modified how the sample geometry type is handled in forward simulations
heprom May 11, 2023
c00ef7f
new example data set
heprom May 26, 2023
4e6a94e
small syntax changes
heprom May 26, 2023
c9540dd
changed variable name
heprom May 26, 2023
ad9e1b6
added schmid_boas_notation method
heprom Jun 13, 2023
3e7eac1
Minor modification to handle specification of voxel dimensions in v…
AldoMarano Jun 23, 2023
b553d3e
Merge branch 'master' into devel_AM
AldoMarano Jun 23, 2023
31ddcf7
Merge branch 'devel' into devel_AM
AldoMarano Jun 30, 2023
ab70690
Commit Test
daria-mesbah Jul 6, 2023
6e9d369
Add resampling metho
daria-mesbah Jul 6, 2023
4e0048e
new rotate_orientation method
heprom Jul 13, 2023
a61a6ce
DEV : Suppression of XDMF and HDF5 files sync
AldoMarano Jul 17, 2023
ee68c77
DEV : Suppression of XDMF and HDF5 files sync
AldoMarano Jul 17, 2023
7109fca
moved function transformation_matrix from laue to microstructure modu…
heprom Jul 19, 2023
afc0324
new function to write an ang file from EBSD data
heprom Jul 19, 2023
000c573
new function get_lattice_constants
heprom Jul 19, 2023
4dc8b74
DEV : Improved set of Tests for core module
AldoMarano Jul 24, 2023
91e64cf
DEV : Improved set of tests for core module (SampleData class)
AldoMarano Jul 24, 2023
d6011de
-- DEBUG : print_dataset content depth option bug solved
AldoMarano Jul 25, 2023
e8a98d5
Fix 'get_grain_boundaries' method
daria-mesbah Aug 4, 2023
4d810de
- Documentation User Guide section completely revised
AldoMarano Aug 6, 2023
4465b29
-- small debug to pass tests
AldoMarano Aug 6, 2023
29168d2
- Added phase plotting in View_slice method (Microstructure)
AldoMarano Aug 9, 2023
ae7ab1d
- improved legend for phase plotting in view_phase
AldoMarano Aug 9, 2023
4fa586a
-- updated docstring view slice
AldoMarano Aug 10, 2023
2c72073
-- view_slice show gb modified to work with all plots
AldoMarano Aug 10, 2023
0cdfdac
Update resample function
daria-mesbah Aug 22, 2023
f5b7881
Update microstructure.py
daria-mesbah Aug 22, 2023
19bd9b4
Update microstructure.py
daria-mesbah Aug 22, 2023
ba6fa2e
Update resample function
daria-mesbah Aug 22, 2023
5a28a8d
Update microstructure.py
daria-mesbah Aug 22, 2023
c235c21
Update microstructure.py
daria-mesbah Aug 22, 2023
13293ad
Update 'to_amitex_fftp' function in microstructure.py
daria-mesbah Aug 22, 2023
0811108
Update 'to_amitex_fftp' function. Modifying names of orientation files
daria-mesbah Aug 23, 2023
af8de7c
Update 'match_grains' function
daria-mesbah Aug 23, 2023
d8d0eb5
compute_mean_orientation now fully use quaternion space
heprom Aug 23, 2023
47dad71
Merge pull request #22 from heprom/Daria
heprom Aug 24, 2023
4e8bcb1
match_grains now include news parameters to restrict the grains to ma…
heprom Sep 7, 2023
658d8cb
Several Improvement :
AldoMarano Sep 7, 2023
b626ebe
Merge branch 'devel' into devel_Aldo
heprom Sep 7, 2023
82064a5
Merge pull request #23 from heprom/devel_Aldo
heprom Sep 7, 2023
4a402a4
handle tesr files from neper without orientation data
heprom Oct 23, 2023
2655678
fixed the number of integration points for element c2d3
heprom Nov 24, 2023
065aa7e
update microstructure data
heprom Dec 18, 2023
1b12e24
new method anim to position
heprom Dec 18, 2023
a0eb216
new method vtkAnimCameraToPosition
heprom Dec 18, 2023
05a22ca
new class vtkAnimCameraToPosition
heprom Dec 18, 2023
d26374c
added docstrings
heprom Dec 18, 2023
6045ebd
new method ax2ro
heprom Dec 18, 2023
c0e2e51
fix small bug determining the phase during segmentation
heprom Dec 18, 2023
cd09d22
updated microstructure data
heprom Dec 18, 2023
7a92aea
update the ForwardSimulation method
heprom Dec 22, 2023
1dc88b3
moved the view_slice method to its own module
heprom Jan 30, 2024
0f5dfe5
new methods get_points and to_tsl
heprom Jan 30, 2024
4128328
improved ctf import
heprom Jan 30, 2024
dc9893b
fix id_list queries
heprom Jan 30, 2024
de6f225
updated microstructure example data
heprom Jan 30, 2024
2b7fb78
fix phase array
heprom Jan 30, 2024
3320ace
fix 0 grain id in list
heprom Jan 30, 2024
9a33977
add plot method for the Orientation class
heprom Jan 30, 2024
6575a9e
add support for drawing hexagonal lattices
heprom Feb 1, 2024
bf6a3c5
new test for get_points method
heprom Feb 1, 2024
bb736d0
fix writing symmetry in ang header
heprom Feb 6, 2024
435a991
fix segmentation when phase map ash zero values
heprom Mar 1, 2024
60c1fcf
add downsample option in from_ebsd method
heprom Mar 1, 2024
0941e0d
improved method get_points
heprom Mar 1, 2024
be586d6
new option to show the crystal lattice in view module
heprom Mar 1, 2024
57c981d
new example to plot crystal lattice in ebsd maps
heprom Mar 5, 2024
6172660
fix plotting the crystal lattice
heprom Mar 5, 2024
7c301e3
fix face ordering so that normals point out
heprom Mar 5, 2024
68a4025
new option to import the grain segmentation in from_ebsd
heprom Mar 12, 2024
f9d4492
better handle multiple phases and system reference frames
heprom Mar 12, 2024
5b4c1f0
new general method for image registration based on control points
heprom Mar 14, 2024
7837a13
new method to delete a phase from a scan
heprom Mar 14, 2024
20f102b
fix bug int recad when bounds are passed as int
heprom Mar 15, 2024
052b886
new attribute to allow to select some grains for the pole figure
heprom Mar 15, 2024
92870ca
fixed bug in recad when bounds are passed as int
heprom Mar 15, 2024
f9aa695
commented out print statement
heprom Mar 15, 2024
2b8d058
fixed grain id issue to pick the phase in EBSD segmentation
heprom Mar 15, 2024
6d9f12b
new method label_OIM_unique_grain_map
heprom Mar 18, 2024
6e58750
added tqdm as a dependency
heprom Mar 18, 2024
9f37f37
improvements to handle multiphase materials
heprom Mar 18, 2024
6e17fa6
remove deprecated get_ipf_colour method
heprom Mar 18, 2024
a1b2eba
fix issue with mask in from_ebsd
heprom Mar 19, 2024
d38faa3
improve print output
heprom Mar 22, 2024
69d0d86
add support to color microstructure with phase
heprom Mar 22, 2024
368ef08
clean print statement
heprom Mar 28, 2024
c0d1178
clean print statements
heprom Mar 28, 2024
4c5afa6
fix small issue with elastic constants when changing lattice
heprom Mar 28, 2024
a3e2106
new set_grain_phases method
heprom Mar 28, 2024
e7586a1
update test data files
heprom Apr 26, 2024
b0bd43f
more improvements in reading vendors files
heprom Apr 26, 2024
6e79f8d
quick fix
heprom Apr 26, 2024
555548f
corrected typo
heprom Apr 26, 2024
315a8a9
more updates in from_ebsd and more complete graph method
heprom Apr 26, 2024
e5a8396
updated data file with phase info
heprom Apr 26, 2024
7816fb2
new test microstructure
heprom Apr 26, 2024
ed869d1
added View_graph class
Rxzh Apr 30, 2024
2eba923
improved from_labdct method
heprom May 14, 2024
f83d2ec
accelerate create_IPF_map
heprom May 14, 2024
790e710
changed np.bool into bool
heprom May 14, 2024
be8fba0
Modifications according to numpy evolution
May 17, 2024
22e9a31
Fix basictools mesh reader test
May 17, 2024
79a4a52
Merge branch 'devel' into update-versions-and-install
May 17, 2024
4cdf17e
update requirements and add github workflow
May 17, 2024
2ac6ae6
Add support for running tests on all branches in GitHub workflow
May 17, 2024
657f830
Fix skimage import error in Microstructure class
May 17, 2024
0120b56
Use BasicToolsFrozen from pypi now
May 21, 2024
b9128b7
add workflows for pypi test and official pypi publication
May 22, 2024
8dbf7fb
temporary hack
May 22, 2024
a54129b
chore: Add requirements.txt and requirements-docs.txt to MANIFEST.in
May 22, 2024
1d17313
deactivate test publish on push
May 23, 2024
03abb31
Add download_data function for caching and downloading files for exam…
May 23, 2024
ebca4c4
Add requests to requirements.txt
May 23, 2024
bc9d835
move requests import to fix pip install
May 23, 2024
cf619e3
Remove data from main pymicro repo (moved in pymicro-data repo)
May 24, 2024
96827b5
Update implied by tranfer of tests/examples data in a separate repo
May 28, 2024
c8f6c5b
add a new option to control the hexagonal case
heprom May 30, 2024
2c33011
cosmetic fix
heprom May 30, 2024
13db859
new function add_grain_lattices_representation
heprom May 30, 2024
fb25a7e
fix key for hkl family when reading h5 file
heprom May 31, 2024
1587abb
fix how x and y fields are handled during registration
heprom Jun 10, 2024
7aaa65e
Merge branch 'devel' into update-versions-and-install
heprom Jun 18, 2024
86d968c
avoid numpy 2.0
heprom Jun 18, 2024
fddae16
Merge pull request #25 from heprom/update-versions-and-install
heprom Jun 18, 2024
ce29f20
updated version number
heprom Jun 18, 2024
d14b2b4
updated change log for version 0.6.0
heprom Jun 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/python-publish-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Test Upload Python Package

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package 📦️ on PyPi Test
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
verbose: true
skip-existing: true
repository-url: https://test.pypi.org/legacy/
42 changes: 42 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python#publishing-to-package-registries

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
release:
types: [published]
workflow_dispatch:

permissions:
contents: read

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v3
with:
python-version: "3.8"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build
- name: Publish package 📦️ on PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
verbose: true
skip-existing: true
repository-url: https://upload.pypi.org/legacy/
37 changes: 37 additions & 0 deletions .github/workflows/run-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: run-test

## run for all branches

on:
push:
workflow_dispatch:

jobs:
test_and_doc:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Install package
run: pip install .

- name: Run tests
run: |
export PYTHONPATH=$PWD
mkdir -p tesdata
pytest --junitxml=tesdata/pymicro${{ matrix.python-version }}.xml

- name: Upload test results
uses: actions/upload-artifact@v2
with:
name: test-results
path: tesdata/pymicro${{ matrix.python-version }}.xml
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,7 @@ include pymicro/crystal/cif/*

# Include the x-ray data files
include pymicro/xray/data/*

include requirements.txt

include requirements-docs.txt
12 changes: 9 additions & 3 deletions config.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import os
import pathlib as pl

PYMICRO_ROOT_DIR = os.path.dirname(os.path.abspath(__file__))
PYMICRO_EXAMPLES_DATA_DIR = os.path.join(PYMICRO_ROOT_DIR, 'examples', 'data')
PYMICRO_XRAY_DATA_DIR = os.path.join(PYMICRO_ROOT_DIR, 'pymicro', 'xray', 'data')
PYMICRO_ROOT_DIR = pl.Path(__file__).parent
PYMICRO_EXAMPLES_DATA_DIR = PYMICRO_ROOT_DIR / 'examples' / 'data'

if not PYMICRO_EXAMPLES_DATA_DIR.exists():
data_home = os.environ.get("PYMICRO_DATA", pl.Path.home() / ".pymicro_data")
PYMICRO_EXAMPLES_DATA_DIR = pl.Path(data_home)

PYMICRO_XRAY_DATA_DIR = os.path.join(PYMICRO_ROOT_DIR, 'pymicro', 'xray', 'data')
5 changes: 5 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from pymicro import dowload_datadir

def pytest_sessionstart(session):
print("sessionstart", session)
dowload_datadir()
Loading
Loading