Skip to content

Commit

Permalink
flagile imports
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinMalyMM committed Feb 20, 2023
1 parent 3dd9a0f commit c385520
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install setuptools wheel twine pandas
# pip install build
- name: Build and publish package
env:
Expand Down
7 changes: 5 additions & 2 deletions import_serial/import_serial.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
import pandas as pd
from math import sqrt
import json
from cctbx import miller, crystal, uctbx, sgtbx, xray
from cctbx.array_family import flex
try:
from cctbx import miller, crystal, uctbx, sgtbx, xray
from cctbx.array_family import flex
except ModuleNotFoundError:
print("WARNING: ModuleNotFoundError: Module CCTBX was not found.")
# TO DO: 3 input files
# TO DO: unit cell parameters from stream file
# TO DO: check output MTZ
Expand Down

0 comments on commit c385520

Please sign in to comment.